Skip to content

Commit

Permalink
Clean up trivial if let
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Sep 27, 2020
1 parent 5b9e886 commit e420051
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_span/src/hygiene.rs
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ impl ExpnData {

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

Expand Down

0 comments on commit e420051

Please sign in to comment.