mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-25 05:17:34 +00:00
Addressed PR comments
This commit is contained in:
parent
eba3646b83
commit
8d03922e3b
@ -296,7 +296,6 @@ mod test {
|
|||||||
use super::*;
|
use super::*;
|
||||||
use std::iter::FromIterator;
|
use std::iter::FromIterator;
|
||||||
|
|
||||||
|
|
||||||
fn pat(string: &'static str) -> glob::Pattern {
|
fn pat(string: &'static str) -> glob::Pattern {
|
||||||
glob::Pattern::new(string).unwrap()
|
glob::Pattern::new(string).unwrap()
|
||||||
}
|
}
|
||||||
|
@ -91,7 +91,7 @@ pub enum Strictness {
|
|||||||
|
|
||||||
/// Whether a flag takes a value. This is applicable to both long and short
|
/// Whether a flag takes a value. This is applicable to both long and short
|
||||||
/// arguments.
|
/// arguments.
|
||||||
#[derive(Copy, Clone, PartialEq, Eq, Debug)]
|
#[derive(PartialEq, Eq, Debug, Copy, Clone)]
|
||||||
pub enum TakesValue {
|
pub enum TakesValue {
|
||||||
|
|
||||||
/// This flag has to be followed by a value.
|
/// This flag has to be followed by a value.
|
||||||
|
@ -262,11 +262,11 @@ impl render::SizeColours for Theme {
|
|||||||
use number_prefix::Prefix::*;
|
use number_prefix::Prefix::*;
|
||||||
|
|
||||||
match prefix {
|
match prefix {
|
||||||
None => self.ui.size.number_byte,
|
|
||||||
Some(Kilo | Kibi) => self.ui.size.number_kilo,
|
Some(Kilo | Kibi) => self.ui.size.number_kilo,
|
||||||
Some(Mega | Mebi) => self.ui.size.number_mega,
|
Some(Mega | Mebi) => self.ui.size.number_mega,
|
||||||
Some(Giga | 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,
|
||||||
|
None => self.ui.size.number_byte,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -274,11 +274,11 @@ impl render::SizeColours for Theme {
|
|||||||
use number_prefix::Prefix::*;
|
use number_prefix::Prefix::*;
|
||||||
|
|
||||||
match prefix {
|
match prefix {
|
||||||
None => self.ui.size.unit_byte,
|
|
||||||
Some(Kilo | Kibi) => self.ui.size.unit_kilo,
|
Some(Kilo | Kibi) => self.ui.size.unit_kilo,
|
||||||
Some(Mega | Mebi) => self.ui.size.unit_mega,
|
Some(Mega | Mebi) => self.ui.size.unit_mega,
|
||||||
Some(Giga | 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,
|
||||||
|
None => self.ui.size.unit_byte,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user