2021-01-30 11:06:34 -06:00
|
|
|
error: redundant slicing of the whole range
|
2022-02-26 07:26:21 -06:00
|
|
|
--> $DIR/redundant_slicing.rs:10:13
|
2021-01-30 11:06:34 -06:00
|
|
|
|
|
2022-02-26 07:26:21 -06:00
|
|
|
LL | let _ = &slice[..]; // Redundant slice
|
2021-04-08 10:50:13 -05:00
|
|
|
| ^^^^^^^^^^ help: use the original value instead: `slice`
|
2021-01-30 11:06:34 -06:00
|
|
|
|
|
|
|
|
= note: `-D clippy::redundant-slicing` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: redundant slicing of the whole range
|
2022-02-26 07:26:21 -06:00
|
|
|
--> $DIR/redundant_slicing.rs:14:13
|
2021-04-08 10:50:13 -05:00
|
|
|
|
|
2022-02-26 07:26:21 -06:00
|
|
|
LL | let _ = &(&*v)[..]; // Outer borrow is redundant
|
|
|
|
| ^^^^^^^^^^ help: use the original value instead: `(&*v)`
|
2021-04-08 10:50:13 -05:00
|
|
|
|
|
|
|
error: redundant slicing of the whole range
|
2022-02-26 07:26:21 -06:00
|
|
|
--> $DIR/redundant_slicing.rs:31:13
|
2021-04-08 10:50:13 -05:00
|
|
|
|
|
|
|
|
LL | let _ = &m!(slice)[..];
|
|
|
|
| ^^^^^^^^^^^^^^ help: use the original value instead: `slice`
|
|
|
|
|
2022-02-26 07:26:21 -06:00
|
|
|
error: aborting due to 3 previous errors
|
2021-01-30 11:06:34 -06:00
|
|
|
|