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 1e09d5d + e420051 commit f291942
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 f291942

Please sign in to comment.