Skip to content

Commit

Permalink
style: include from_iter_instead_of_collect
Browse files Browse the repository at this point in the history
  • Loading branch information
vil02 committed Sep 30, 2024
1 parent a8ec294 commit e0d0431
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ enum_glob_use = { level = "allow", priority = 1 }
explicit_deref_methods = { level = "allow", priority = 1 }
explicit_iter_loop = { level = "allow", priority = 1 }
float_cmp = { level = "allow", priority = 1 }
from_iter_instead_of_collect = { level = "allow", priority = 1 }
if_not_else = { level = "allow", priority = 1 }
implicit_clone = { level = "allow", priority = 1 }
implicit_hasher = { level = "allow", priority = 1 }
Expand Down
2 changes: 1 addition & 1 deletion src/data_structures/union_find.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ mod tests {

#[test]
fn test_union_find() {
let mut uf = UnionFind::from_iter(0..10);
let mut uf = (0..10).collect::<UnionFind<_>>();
assert_eq!(uf.find(&0), Some(0));
assert_eq!(uf.find(&1), Some(1));
assert_eq!(uf.find(&2), Some(2));
Expand Down

0 comments on commit e0d0431

Please sign in to comment.