Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wowinter13 committed Jan 15, 2025
1 parent e1118b0 commit 6ace86c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/ui/sliced_string_as_bytes.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ error: calling `as_bytes` after slicing a string
LL | let bytes = s[1..5].as_bytes();
| ^^^^^^^^^^^^^^^^^^ help: try: `&s.as_bytes()[1..5]`
|
= note: `-D clippy::slice-as-bytes` implied by `-D warnings`
= note: `-D clippy::sliced-string-as-bytes` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::sliced_string_as_bytes)]`

error: calling `as_bytes` after slicing a string
Expand Down

0 comments on commit 6ace86c

Please sign in to comment.