X-Git-Url: https://git.nihav.org/?p=nihav.git;a=blobdiff_plain;f=nihav-duck%2Fsrc%2Fcodecs%2Fvp7enc%2Fblocks.rs;fp=nihav-duck%2Fsrc%2Fcodecs%2Fvp7enc%2Fblocks.rs;h=227638264cdd8676389664abae7f907a4ea5dd28;hp=bfb8fbd51352a1c894c68c027dbb92c678d72bb5;hb=6f2630992fe340ad1a122ec10c649f756e478185;hpb=f44bddc9b5520507c7571b89763de668238d790a diff --git a/nihav-duck/src/codecs/vp7enc/blocks.rs b/nihav-duck/src/codecs/vp7enc/blocks.rs index bfb8fbd..2276382 100644 --- a/nihav-duck/src/codecs/vp7enc/blocks.rs +++ b/nihav-duck/src/codecs/vp7enc/blocks.rs @@ -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 {