Rollup merge of #77263 - bugadani:cleanup, r=lcnr
Clean up trivial if let
This commit is contained in:
commit
344ab3fb7b
@ -759,7 +759,7 @@ pub fn allow_unstable(
|
|||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn is_root(&self) -> bool {
|
pub fn is_root(&self) -> bool {
|
||||||
if let ExpnKind::Root = self.kind { true } else { false }
|
matches!(self.kind, ExpnKind::Root)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user