Clean up trivial if let

This commit is contained in:
Dániel Buga 2020-09-27 11:54:50 +02:00
parent 5b9e886403
commit e4200512ff
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}
}