Skip to content

Commit 7fd915f

Browse files
committed
simple-linked-list: Use range instead of vec!
Clippy suggested: useless use of `vec!` https://rust-lang-nursery.github.io/rust-clippy/master/index.html#useless_vec
1 parent ccf6d69 commit 7fd915f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exercises/simple-linked-list/tests/simple-linked-list.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ fn test_reverse() {
8282
fn test_into_vector() {
8383
let mut v = Vec::new();
8484
let mut s = SimpleLinkedList::new();
85-
for i in vec![1, 2, 3] {
85+
for i in 1..4 {
8686
v.push(i);
8787
s.push(i);
8888
}

0 commit comments

Comments
 (0)