Skip to content

Commit e0d0431

Browse files
committed
style: include from_iter_instead_of_collect
1 parent a8ec294 commit e0d0431

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ enum_glob_use = { level = "allow", priority = 1 }
3939
explicit_deref_methods = { level = "allow", priority = 1 }
4040
explicit_iter_loop = { level = "allow", priority = 1 }
4141
float_cmp = { level = "allow", priority = 1 }
42-
from_iter_instead_of_collect = { level = "allow", priority = 1 }
4342
if_not_else = { level = "allow", priority = 1 }
4443
implicit_clone = { level = "allow", priority = 1 }
4544
implicit_hasher = { level = "allow", priority = 1 }

src/data_structures/union_find.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ mod tests {
128128

129129
#[test]
130130
fn test_union_find() {
131-
let mut uf = UnionFind::from_iter(0..10);
131+
let mut uf = (0..10).collect::<UnionFind<_>>();
132132
assert_eq!(uf.find(&0), Some(0));
133133
assert_eq!(uf.find(&1), Some(1));
134134
assert_eq!(uf.find(&2), Some(2));

0 commit comments

Comments
 (0)