2022-08-31 13:24:45 +00:00
|
|
|
error: `peek` never called on `Peekable` iterator
|
2023-07-17 08:19:29 +00:00
|
|
|
--> $DIR/unused_peekable.rs:13:9
|
2022-08-31 13:24:45 +00:00
|
|
|
|
|
|
|
|
LL | let peekable = std::iter::empty::<u32>().peekable();
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider removing the call to `peekable`
|
2022-09-22 16:04:22 +00:00
|
|
|
= note: `-D clippy::unused-peekable` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::unused_peekable)]`
|
2022-08-31 13:24:45 +00:00
|
|
|
|
|
|
|
error: `peek` never called on `Peekable` iterator
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/unused_peekable.rs:18:9
|
2022-08-31 13:24:45 +00:00
|
|
|
|
|
|
|
|
LL | let new_local = old_local;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider removing the call to `peekable`
|
|
|
|
|
|
|
|
error: `peek` never called on `Peekable` iterator
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/unused_peekable.rs:23:9
|
2022-08-31 13:24:45 +00:00
|
|
|
|
|
|
|
|
LL | let by_mut_ref = &mut by_mut_ref_test;
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider removing the call to `peekable`
|
|
|
|
|
|
|
|
error: `peek` never called on `Peekable` iterator
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/unused_peekable.rs:31:9
|
2022-08-31 13:24:45 +00:00
|
|
|
|
|
|
|
|
LL | let peekable_from_fn = returns_peekable();
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider removing the call to `peekable`
|
|
|
|
|
|
|
|
error: `peek` never called on `Peekable` iterator
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/unused_peekable.rs:35:13
|
2022-08-31 13:24:45 +00:00
|
|
|
|
|
|
|
|
LL | let mut peekable_using_iterator_method = std::iter::empty::<u32>().peekable();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider removing the call to `peekable`
|
|
|
|
|
|
|
|
error: `peek` never called on `Peekable` iterator
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/unused_peekable.rs:41:9
|
2022-08-31 13:24:45 +00:00
|
|
|
|
|
|
|
|
LL | let passed_along_ref = std::iter::empty::<u32>().peekable();
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider removing the call to `peekable`
|
|
|
|
|
|
|
|
error: `peek` never called on `Peekable` iterator
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/unused_peekable.rs:47:9
|
2022-08-31 13:24:45 +00:00
|
|
|
|
|
|
|
|
LL | let _by_ref = by_ref_test.by_ref();
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider removing the call to `peekable`
|
|
|
|
|
|
|
|
error: `peek` never called on `Peekable` iterator
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/unused_peekable.rs:50:13
|
2022-08-31 13:24:45 +00:00
|
|
|
|
|
|
|
|
LL | let mut peekable_in_for_loop = std::iter::empty::<u32>().peekable();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider removing the call to `peekable`
|
|
|
|
|
|
|
|
error: aborting due to 8 previous errors
|
|
|
|
|