mirror of
https://github.com/astral-sh/ruff
synced 2026-01-20 21:10:48 -05:00
Upgrade to Rust 1.82 toolchain (#13808)
This commit is contained in:
@@ -18,9 +18,10 @@ impl FormatNodeRule<PatternMatchStar> for FormatPatternMatchStar {
|
||||
|
||||
write!(f, [token("*"), dangling_comments(dangling)])?;
|
||||
|
||||
match name {
|
||||
Some(name) => write!(f, [name.format()]),
|
||||
None => write!(f, [token("_")]),
|
||||
if let Some(name) = name {
|
||||
write!(f, [name.format()])
|
||||
} else {
|
||||
write!(f, [token("_")])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user