Switch off the single_match_else Clippy lint (#13994)

This commit is contained in:
Alex Waygood 2024-10-30 12:24:16 +00:00 committed by GitHub
parent f426349051
commit e6dcdf3e49
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -188,8 +188,9 @@ missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
similar_names = "allow"
single_match_else = "allow"
too_many_lines = "allow"
# To allow `#[allow(clippy::all)]` in `crates/ruff_python_parser/src/python.rs`.
# Without the hashes we run into a `rustfmt` bug in some snapshot tests, see #13250
needless_raw_string_hashes = "allow"
# Disallowed restriction lints
print_stdout = "warn"

View file

@ -3666,7 +3666,6 @@ impl<'db> TypeInferenceBuilder<'db> {
}
ast::Expr::BinOp(binary) => {
#[allow(clippy::single_match_else)]
match binary.op {
// PEP-604 unions are okay, e.g., `int | str`
ast::Operator::BitOr => {