From 2917062466183d7db9e4bf72a68599fa34836ee2 Mon Sep 17 00:00:00 2001 From: Victor Song Date: Fri, 30 Sep 2022 23:05:39 -0400 Subject: [PATCH] Nest OR patterns in match arms --- src/theme/mod.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/theme/mod.rs b/src/theme/mod.rs index 243698e..f167b7b 100644 --- a/src/theme/mod.rs +++ b/src/theme/mod.rs @@ -263,9 +263,9 @@ impl render::SizeColours for Theme { match prefix { None => self.ui.size.number_byte, - Some(Kilo) | Some(Kibi) => self.ui.size.number_kilo, - Some(Mega) | Some(Mebi) => self.ui.size.number_mega, - Some(Giga) | Some(Gibi) => self.ui.size.number_giga, + Some(Kilo | Kibi) => self.ui.size.number_kilo, + Some(Mega | Mebi) => self.ui.size.number_mega, + Some(Giga | Gibi) => self.ui.size.number_giga, Some(_) => self.ui.size.number_huge, } } @@ -275,9 +275,9 @@ impl render::SizeColours for Theme { match prefix { None => self.ui.size.unit_byte, - Some(Kilo) | Some(Kibi) => self.ui.size.unit_kilo, - Some(Mega) | Some(Mebi) => self.ui.size.unit_mega, - Some(Giga) | Some(Gibi) => self.ui.size.unit_giga, + Some(Kilo | Kibi) => self.ui.size.unit_kilo, + Some(Mega | Mebi) => self.ui.size.unit_mega, + Some(Giga | Gibi) => self.ui.size.unit_giga, Some(_) => self.ui.size.unit_huge, } }