Skip to content

Commit 6a9a21f

Browse files
committed
Resolve useless_conversion clippy lint in test
error: explicit call to `.into_iter()` in function argument accepting `IntoIterator` --> test_suite/tests/test_de.rs:202:12 | 202 | .chain(vec![Token::MapEnd].into_iter()) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing the `.into_iter()`: `vec![Token::MapEnd]` | note: this parameter accepts any `IntoIterator`, so you don't need to call `.into_iter()` --> /home/david/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/iter/traits/iterator.rs:522:12 | 522 | U: IntoIterator<Item = Self::Item>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion = note: `-D clippy::useless-conversion` implied by `-D clippy::all`
1 parent 81ac54b commit 6a9a21f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test_suite/tests/test_de.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ fn assert_de_tokens_ignore(ignorable_tokens: &[Token]) {
199199
]
200200
.into_iter()
201201
.chain(ignorable_tokens.iter().copied())
202-
.chain(vec![Token::MapEnd].into_iter())
202+
.chain(vec![Token::MapEnd])
203203
.collect();
204204

205205
let expected = IgnoreBase { a: 1 };

0 commit comments

Comments
 (0)