We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26a7b32 commit 4fef1b4Copy full SHA for 4fef1b4
tests/ui/sliced_string_as_bytes.stderr
@@ -4,7 +4,7 @@ error: calling `as_bytes` after slicing a string
4
LL | let bytes = s[1..5].as_bytes();
5
| ^^^^^^^^^^^^^^^^^^ help: try: `&s.as_bytes()[1..5]`
6
|
7
- = note: `-D clippy::slice-as-bytes` implied by `-D warnings`
+ = note: `-D clippy::sliced-string-as-bytes` implied by `-D warnings`
8
= help: to override `-D warnings` add `#[allow(clippy::sliced_string_as_bytes)]`
9
10
error: calling `as_bytes` after slicing a string
0 commit comments