mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-12-01 07:53:54 +00:00
Nest OR patterns in match arms
This commit is contained in:
parent
1b844a8dfa
commit
2917062466
@ -263,9 +263,9 @@ impl render::SizeColours for Theme {
|
|||||||
|
|
||||||
match prefix {
|
match prefix {
|
||||||
None => self.ui.size.number_byte,
|
None => self.ui.size.number_byte,
|
||||||
Some(Kilo) | Some(Kibi) => self.ui.size.number_kilo,
|
Some(Kilo | Kibi) => self.ui.size.number_kilo,
|
||||||
Some(Mega) | Some(Mebi) => self.ui.size.number_mega,
|
Some(Mega | Mebi) => self.ui.size.number_mega,
|
||||||
Some(Giga) | Some(Gibi) => self.ui.size.number_giga,
|
Some(Giga | Gibi) => self.ui.size.number_giga,
|
||||||
Some(_) => self.ui.size.number_huge,
|
Some(_) => self.ui.size.number_huge,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -275,9 +275,9 @@ impl render::SizeColours for Theme {
|
|||||||
|
|
||||||
match prefix {
|
match prefix {
|
||||||
None => self.ui.size.unit_byte,
|
None => self.ui.size.unit_byte,
|
||||||
Some(Kilo) | Some(Kibi) => self.ui.size.unit_kilo,
|
Some(Kilo | Kibi) => self.ui.size.unit_kilo,
|
||||||
Some(Mega) | Some(Mebi) => self.ui.size.unit_mega,
|
Some(Mega | Mebi) => self.ui.size.unit_mega,
|
||||||
Some(Giga) | Some(Gibi) => self.ui.size.unit_giga,
|
Some(Giga | Gibi) => self.ui.size.unit_giga,
|
||||||
Some(_) => self.ui.size.unit_huge,
|
Some(_) => self.ui.size.unit_huge,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user