Commit 81b4a56
committed
Fix clippy::useless_conversion warning
```
warning: explicit call to `.into_iter()` in function argument accepting `IntoIterator`
--> futures/tests/stream_select_all.rs:83:38
|
83 | ...ec![stream::iter(vec![1].into_iter()), stream::iter(vec![2].i...
| ^^^^^^^^^^^^^^^^^^^ help: consider removing the `.into_iter()`: `vec![1]`
|
note: this parameter accepts any `IntoIterator`, so you don't need to call `.into_iter()`
--> /Users/taiki/projects/sources/rust-lang/futures-rs/futures-util/src/stream/iter.rs:31:8
|
31 | I: IntoIterator,
| ^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
= note: `#[warn(clippy::useless_conversion)]` on by default
warning: explicit call to `.into_iter()` in function argument accepting `IntoIterator`
--> futures/tests/stream_select_all.rs:83:73
|
83 | ...)), stream::iter(vec![2].into_iter())]);
| ^^^^^^^^^^^^^^^^^^^ help: consider removing the `.into_iter()`: `vec![2]`
|
note: this parameter accepts any `IntoIterator`, so you don't need to call `.into_iter()`
--> /Users/taiki/projects/sources/rust-lang/futures-rs/futures-util/src/stream/iter.rs:31:8
|
31 | I: IntoIterator,
| ^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
warning: explicit call to `.into_iter()` in function argument accepting `IntoIterator`
--> futures/tests/stream_select_all.rs:91:29
|
91 | tasks.push(stream::iter(vec![3].into_iter()));
| ^^^^^^^^^^^^^^^^^^^ help: consider removing the `.into_iter()`: `vec![3]`
|
note: this parameter accepts any `IntoIterator`, so you don't need to call `.into_iter()`
--> /Users/taiki/projects/sources/rust-lang/futures-rs/futures-util/src/stream/iter.rs:31:8
|
31 | I: IntoIterator,
| ^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
warning: explicit call to `.into_iter()` in function argument accepting `IntoIterator`
--> futures/tests/async_await_macros.rs:325:41
|
325 | ...ct!(stream::iter(vec![1].into_iter()), stream::iter(vec![1]....
| ^^^^^^^^^^^^^^^^^^^ help: consider removing the `.into_iter()`: `vec![1]`
|
note: this parameter accepts any `IntoIterator`, so you don't need to call `.into_iter()`
--> /Users/taiki/projects/sources/rust-lang/futures-rs/futures-util/src/stream/iter.rs:31:8
|
31 | I: IntoIterator,
| ^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
= note: `#[warn(clippy::useless_conversion)]` on by default
warning: explicit call to `.into_iter()` in function argument accepting `IntoIterator`
--> futures/tests/async_await_macros.rs:325:76
|
325 | ...)), stream::iter(vec![1].into_iter()));
| ^^^^^^^^^^^^^^^^^^^ help: consider removing the `.into_iter()`: `vec![1]`
|
note: this parameter accepts any `IntoIterator`, so you don't need to call `.into_iter()`
--> /Users/taiki/projects/sources/rust-lang/futures-rs/futures-util/src/stream/iter.rs:31:8
|
31 | I: IntoIterator,
| ^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
```1 parent 67b417d commit 81b4a56
2 files changed
+3
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
324 | | - | |
325 | | - | |
| 324 | + | |
326 | 325 | | |
327 | 326 | | |
328 | 327 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
| 82 | + | |
84 | 83 | | |
85 | 84 | | |
86 | 85 | | |
87 | 86 | | |
88 | 87 | | |
89 | 88 | | |
90 | 89 | | |
91 | | - | |
| 90 | + | |
92 | 91 | | |
93 | 92 | | |
94 | 93 | | |
| |||
0 commit comments