Skip to content

Commit

Permalink
Auto merge of #13537 - Manishearth:applicable, r=xFrednet
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bors committed Oct 11, 2024
2 parents b85f632 + 42723dc commit 48e98ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clippy_lints/src/byte_char_slices.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion clippy_lints/src/methods/unnecessary_first_then_check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pub(super) fn check(
),
"replace this with",
suggestion,
Applicability::MaybeIncorrect,
Applicability::MachineApplicable,
);
}
}

0 comments on commit 48e98ec

Please sign in to comment.