Skip to content

Commit

Permalink
clippy fixes for 1.57
Browse files Browse the repository at this point in the history
  • Loading branch information
sunshowers committed Dec 4, 2021
1 parent f111284 commit ada9ab6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions guppy/src/graph/resolve_core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,9 @@ impl<G: GraphSpec> ResolveCore<G> {
mut edge_filter: impl FnMut(EdgeReference<'g, G::Edge, G::Ix>) -> bool,
) -> Self {
let (included, len) = match params {
QueryParams::Forward(initials) => reachable_map_filtered(
graph,
|edge_ref| edge_filter(edge_ref),
initials.into_inner(),
),
QueryParams::Forward(initials) => {
reachable_map_filtered(graph, edge_filter, initials.into_inner())
}
QueryParams::Reverse(initials) => reachable_map_filtered(
Reversed(graph),
|edge_ref| edge_filter(edge_ref.into_unreversed()),
Expand Down
2 changes: 1 addition & 1 deletion tools/determinator/src/paths0.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ impl<'a> IntoIterator for &'a Utf8Paths0 {
return Box::new(std::iter::empty());
}

Box::new(self.buf.split('\0').map(|path| Utf8Path::new(path)))
Box::new(self.buf.split('\0').map(Utf8Path::new))
}
}

Expand Down

0 comments on commit ada9ab6

Please sign in to comment.