mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-21 19:45:11 +00:00
Addressed PR comments
This commit is contained in:
parent
eba3646b83
commit
8d03922e3b
@ -295,7 +295,6 @@ mod test {
|
||||
mod ignore_patterns {
|
||||
use super::*;
|
||||
use std::iter::FromIterator;
|
||||
|
||||
|
||||
fn pat(string: &'static str) -> glob::Pattern {
|
||||
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
|
||||
/// arguments.
|
||||
#[derive(Copy, Clone, PartialEq, Eq, Debug)]
|
||||
#[derive(PartialEq, Eq, Debug, Copy, Clone)]
|
||||
pub enum TakesValue {
|
||||
|
||||
/// This flag has to be followed by a value.
|
||||
|
@ -262,11 +262,11 @@ impl render::SizeColours for Theme {
|
||||
use number_prefix::Prefix::*;
|
||||
|
||||
match prefix {
|
||||
None => self.ui.size.number_byte,
|
||||
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,
|
||||
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::*;
|
||||
|
||||
match prefix {
|
||||
None => self.ui.size.unit_byte,
|
||||
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,
|
||||
Some(_) => self.ui.size.unit_huge,
|
||||
None => self.ui.size.unit_byte,
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user