Skip to content

Commit f291942

Browse files
Rollup merge of #77263 - bugadani:cleanup, r=lcnr
Clean up trivial if let
2 parents 1e09d5d + e420051 commit f291942

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: compiler/rustc_span/src/hygiene.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ impl ExpnData {
759759

760760
#[inline]
761761
pub fn is_root(&self) -> bool {
762-
if let ExpnKind::Root = self.kind { true } else { false }
762+
matches!(self.kind, ExpnKind::Root)
763763
}
764764
}
765765

0 commit comments

Comments
 (0)