mirror of
https://github.com/astral-sh/ruff.git
synced 2025-07-16 01:25:22 +00:00
Upgrade to Rust 1.82 toolchain (#13808)
This commit is contained in:
parent
4ecfe95295
commit
ff72055558
11 changed files with 54 additions and 50 deletions
|
@ -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("_")])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue