Rollup merge of #77263 - bugadani:cleanup, r=lcnr

Clean up trivial if let
This commit is contained in:
Jonas Schievink 2020-09-27 18:37:29 +02:00 committed by GitHub
commit 344ab3fb7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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