Skip to content

Commit

Permalink
Minor: ran cargo fmt.
Browse files Browse the repository at this point in the history
  • Loading branch information
martinfrances107 committed Apr 11, 2024
1 parent c14f7e0 commit 3738b8b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 4 additions & 2 deletions src/algo/isomorphism.rs
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,8 @@ mod matching {

// We hardcode n! values into an array that accounts for architectures
// with smaller usizes to get our upper bound.
let upper_bounds: Vec<Option<usize>> = [1u64,
let upper_bounds: Vec<Option<usize>> = [
1u64,
1,
2,
6,
Expand All @@ -786,7 +787,8 @@ mod matching {
355687428096000,
6402373705728000,
121645100408832000,
2432902008176640000]
2432902008176640000,
]
.iter()
.map(|n| usize::try_from(*n).ok())
.collect();
Expand Down
6 changes: 4 additions & 2 deletions src/graph_impl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1733,8 +1733,10 @@ where
type Item = EdgeReference<'a, E, Ix>;

fn next(&mut self) -> Option<EdgeReference<'a, E, Ix>> {
let target_node = self.target_node;
self.edges.by_ref().find(|&edge| edge.node[1] == target_node)
let target_node = self.target_node;
self.edges
.by_ref()
.find(|&edge| edge.node[1] == target_node)
}
fn size_hint(&self) -> (usize, Option<usize>) {
let (_, upper) = self.edges.size_hint();
Expand Down
2 changes: 1 addition & 1 deletion src/iter_format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::fmt;
/// Format the iterator like a map
pub struct DebugMap<F>(pub F);

impl< F, I, K, V> fmt::Debug for DebugMap<F>
impl<F, I, K, V> fmt::Debug for DebugMap<F>
where
F: Fn() -> I,
I: IntoIterator<Item = (K, V)>,
Expand Down

0 comments on commit 3738b8b

Please sign in to comment.