X-Git-Url: https://git.nihav.org/?p=nihav.git;a=blobdiff_plain;f=nihav-commonfmt%2Fsrc%2Fcodecs%2Fts102366.rs;h=a2ee21cc5a42251257ad11be9e433bdd81923753;hp=963f07dd8a565aa0a7039967935fcc60685645ef;hb=6f2630992fe340ad1a122ec10c649f756e478185;hpb=f44bddc9b5520507c7571b89763de668238d790a diff --git a/nihav-commonfmt/src/codecs/ts102366.rs b/nihav-commonfmt/src/codecs/ts102366.rs index 963f07d..a2ee21c 100644 --- a/nihav-commonfmt/src/codecs/ts102366.rs +++ b/nihav-commonfmt/src/codecs/ts102366.rs @@ -261,21 +261,17 @@ impl ACMode { chmap } fn is_3_x(self) -> bool { - match self { + matches!(self, ACMode::Mode3_0 | ACMode::Mode3_1 | - ACMode::Mode3_2 => true, - _ => false, - } + ACMode::Mode3_2) } fn is_surround(self) -> bool { - match self { + matches!(self, ACMode::Mode2_1 | ACMode::Mode3_1 | ACMode::Mode2_2 | - ACMode::Mode3_2 => true, - _ => false, - } + ACMode::Mode3_2) } }