Skip to content

Commit

Permalink
Ignore byte_char_slices clippy lint in test
Browse files Browse the repository at this point in the history
    warning: can be more succinctly written as a byte str
        --> tests/test.rs:1108:13
         |
    1108 |             &[b'"', b'\n', b'"'],
         |             ^^^^^^^^^^^^^^^^^^^^ help: try: `b"\"\n\""`
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#byte_char_slices
         = note: `-W clippy::byte-char-slices` implied by `-W clippy::all`
         = help: to override `-W clippy::all` add `#[allow(clippy::byte_char_slices)]`

    warning: can be more succinctly written as a byte str
        --> tests/test.rs:1112:13
         |
    1112 |             &[b'"', b'\x1F', b'"'],
         |             ^^^^^^^^^^^^^^^^^^^^^^ help: try: `b"\"\x1F\""`
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#byte_char_slices
  • Loading branch information
dtolnay committed Jul 12, 2024
1 parent 3fd6f5f commit 3f1c6de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#![allow(
clippy::assertions_on_result_states,
clippy::byte_char_slices,
clippy::cast_precision_loss,
clippy::derive_partial_eq_without_eq,
clippy::excessive_precision,
Expand Down

0 comments on commit 3f1c6de

Please sign in to comment.