diff --git a/src/lib.rs b/src/lib.rs index 629d76fef9a02bfa281698630b75b9c953f300e7..19a244c2cab6f19131f0c61fbb1ed6cfd4f3dc45 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1362,7 +1362,7 @@ mod test { #[test] fn test_from_iter() { - let xs = vec![(1, 'a'), (2, 'b'), (3, 'c'), (4, 'd'), (5, 'e')]; + let xs = [(1, 'a'), (2, 'b'), (3, 'c'), (4, 'd'), (5, 'e')]; let map: VecMap<_> = xs.iter().cloned().collect();