diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2024-10-11 12:12:26 -0700 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2024-10-11 12:20:07 -0700 |
| commit | 42723dc9dfb2dae3948dfe678fae36050ee4b99a (patch) | |
| tree | 3ab1b7cacca400b102ac41bc37b4244222f57048 | |
| parent | b85f63260795be317af34e85ec645e69622bf4e3 (diff) | |
| download | rust-42723dc9dfb2dae3948dfe678fae36050ee4b99a.tar.gz rust-42723dc9dfb2dae3948dfe678fae36050ee4b99a.zip | |
Mark unnecessary_first_then_check and byte_char_slices as Applicable
| -rw-r--r-- | clippy_lints/src/byte_char_slices.rs | 2 | ||||
| -rw-r--r-- | clippy_lints/src/methods/unnecessary_first_then_check.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/byte_char_slices.rs b/clippy_lints/src/byte_char_slices.rs index dd2620b0b9d..d88c0711b39 100644 --- a/clippy_lints/src/byte_char_slices.rs +++ b/clippy_lints/src/byte_char_slices.rs @@ -41,7 +41,7 @@ impl EarlyLintPass for ByteCharSlice { "can be more succinctly written as a byte str", "try", format!("b\"{slice}\""), - Applicability::MaybeIncorrect, + Applicability::MachineApplicable, ); } } diff --git a/clippy_lints/src/methods/unnecessary_first_then_check.rs b/clippy_lints/src/methods/unnecessary_first_then_check.rs index 7ae1bb54e60..d322909bef3 100644 --- a/clippy_lints/src/methods/unnecessary_first_then_check.rs +++ b/clippy_lints/src/methods/unnecessary_first_then_check.rs @@ -50,7 +50,7 @@ pub(super) fn check( ), "replace this with", suggestion, - Applicability::MaybeIncorrect, + Applicability::MachineApplicable, ); } } |
