Skip to content

Commit

Permalink
Rollup merge of #77263 - bugadani:cleanup, r=lcnr
Browse files Browse the repository at this point in the history
Clean up trivial if let
  • Loading branch information
jonas-schievink authored Sep 27, 2020
2 parents 65298ee + e420051 commit 344ab3f
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 344ab3f

Please sign in to comment.