fix some clippy warnings
[nihav.git] / nihav-duck / src / codecs / vp7enc / blocks.rs
index bfb8fbd51352a1c894c68c027dbb92c678d72bb5..227638264cdd8676389664abae7f907a4ea5dd28 100644 (file)
@@ -20,11 +20,7 @@ pub enum MBType {
 
 impl MBType {
     pub fn is_intra(&self) -> bool {
-        match *self {
-            MBType::Intra(_, _) |
-            MBType::Intra4x4(_, _, _) => true,
-            _ => false,
-        }
+        matches!(*self, MBType::Intra(_, _) | MBType::Intra4x4(_, _, _))
     }
     pub fn get_last(&self) -> bool {
         match *self {