mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-03 07:04:53 +00:00
Ignore clippy::match-same-arms (pedantic) in a few places (#863)
This commit is contained in:
parent
58949b564e
commit
9bcf194fdc
3 changed files with 5 additions and 0 deletions
|
@ -77,6 +77,7 @@ pub fn main(cli: &Cli) -> Result<()> {
|
|||
.arg_ref_self()
|
||||
.ret(Type::new("Vec<CheckCode>"))
|
||||
.vis("pub")
|
||||
.line("#[allow(clippy::match_same_arms)]")
|
||||
.line("match self {");
|
||||
for (prefix, codes) in &prefix_to_codes {
|
||||
gen = gen.line(format!(
|
||||
|
@ -96,6 +97,7 @@ pub fn main(cli: &Cli) -> Result<()> {
|
|||
.arg_ref_self()
|
||||
.ret(Type::new("PrefixSpecificity"))
|
||||
.vis("pub")
|
||||
.line("#[allow(clippy::match_same_arms)]")
|
||||
.line("match self {");
|
||||
for prefix in prefix_to_codes.keys() {
|
||||
let num_numeric = prefix.chars().filter(|char| char.is_numeric()).count();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue