Upgrade to Rust 1.82 (#13816)
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