diff options
| author | bors <bors@rust-lang.org> | 2024-10-11 22:25:00 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-10-11 22:25:00 +0000 |
| commit | 48e98ec68d1bbf59dad21daff151ff4da4121a64 (patch) | |
| tree | 3ab1b7cacca400b102ac41bc37b4244222f57048 | |
| parent | b85f63260795be317af34e85ec645e69622bf4e3 (diff) | |
| parent | 42723dc9dfb2dae3948dfe678fae36050ee4b99a (diff) | |
| download | rust-48e98ec68d1bbf59dad21daff151ff4da4121a64.tar.gz rust-48e98ec68d1bbf59dad21daff151ff4da4121a64.zip | |
Auto merge of #13537 - Manishearth:applicable, r=xFrednet
Mark unnecessary_first_then_check and byte_char_slices as Applicable I don't really see situations where this isn't Applicable that aren't weird edge cases where the lint should be disabled. changelog: none
| -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, ); } } |
