2021-01-30 17:06:34 +00:00
|
|
|
error: redundant slicing of the whole range
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/redundant_slicing.rs:8:13
|
2021-01-30 17:06:34 +00:00
|
|
|
|
|
2022-02-26 13:26:21 +00:00
|
|
|
LL | let _ = &slice[..]; // Redundant slice
|
2021-04-08 15:50:13 +00:00
|
|
|
| ^^^^^^^^^^ help: use the original value instead: `slice`
|
2021-01-30 17:06:34 +00:00
|
|
|
|
|
|
|
|
= note: `-D clippy::redundant-slicing` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::redundant_slicing)]`
|
2021-01-30 17:06:34 +00:00
|
|
|
|
|
|
|
error: redundant slicing of the whole range
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/redundant_slicing.rs:12:13
|
2021-04-08 15:50:13 +00:00
|
|
|
|
|
2022-02-26 13:26:21 +00:00
|
|
|
LL | let _ = &(&*v)[..]; // Outer borrow is redundant
|
|
|
|
| ^^^^^^^^^^ help: use the original value instead: `(&*v)`
|
2021-04-08 15:50:13 +00:00
|
|
|
|
|
|
|
error: redundant slicing of the whole range
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/redundant_slicing.rs:29:13
|
2021-04-08 15:50:13 +00:00
|
|
|
|
|
|
|
|
LL | let _ = &m!(slice)[..];
|
|
|
|
| ^^^^^^^^^^^^^^ help: use the original value instead: `slice`
|
|
|
|
|
2022-02-26 13:26:21 +00:00
|
|
|
error: aborting due to 3 previous errors
|
2021-01-30 17:06:34 +00:00
|
|
|
|