Upgrade to Rust 1.82 toolchain (#13808)

This commit is contained in:
Micha Reiser
2024-10-18 14:08:15 +02:00
committed by GitHub
parent 4ecfe95295
commit ff72055558
11 changed files with 54 additions and 50 deletions

View File

@@ -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("_")])
}
}
}