Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 4fef1b4

Browse files
committed
Fix tests
1 parent 26a7b32 commit 4fef1b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/ui/sliced_string_as_bytes.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: calling `as_bytes` after slicing a string
44
LL | let bytes = s[1..5].as_bytes();
55
| ^^^^^^^^^^^^^^^^^^ help: try: `&s.as_bytes()[1..5]`
66
|
7-
= note: `-D clippy::slice-as-bytes` implied by `-D warnings`
7+
= note: `-D clippy::sliced-string-as-bytes` implied by `-D warnings`
88
= help: to override `-D warnings` add `#[allow(clippy::sliced_string_as_bytes)]`
99

1010
error: calling `as_bytes` after slicing a string

0 commit comments

Comments
 (0)