Rollup merge of #80327 - PankajChaudhary5:PankajChaudhary, r=GuillaumeGomez
Updated the match with the matches macro r?````@GuillaumeGomez````
This commit is contained in:
commit
2dab627d77
@ -215,10 +215,7 @@ pub enum TyKind<'tcx> {
|
||||
impl TyKind<'tcx> {
|
||||
#[inline]
|
||||
pub fn is_primitive(&self) -> bool {
|
||||
match self {
|
||||
Bool | Char | Int(_) | Uint(_) | Float(_) => true,
|
||||
_ => false,
|
||||
}
|
||||
matches!(self, Bool | Char | Int(_) | Uint(_) | Float(_))
|
||||
}
|
||||
|
||||
/// Get the article ("a" or "an") to use with this type.
|
||||
|
Loading…
Reference in New Issue
Block a user