diff options
author | Ben S <ogham@bsago.me> | 2015-02-10 16:08:10 +0000 |
---|---|---|
committer | Ben S <ogham@bsago.me> | 2015-02-10 16:08:10 +0000 |
commit | 21ac16f80897703ddcd8083c1655bf10e15d5da9 (patch) | |
tree | 9ff81b5dd196c1ab5849f5f52423ac100b2462d7 /src/options.rs | |
parent | f3c3a02e98c5f9029a51c2ed4fe389d96efe22ff (diff) |
Format file size in bytes with the user's locale
Use the `locale` crate as a dependency to read in the set
thousands-separator character, and pass this to the file size column,
which uses it to add the separators in.
en_GB uses ","
fr_FR uses "" and just displays the numbers in one go.
Diffstat (limited to 'src/options.rs')
-rw-r--r-- | src/options.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/options.rs b/src/options.rs index a27be6b..b463150 100644 --- a/src/options.rs +++ b/src/options.rs @@ -32,7 +32,7 @@ pub struct FileFilter { sort_field: SortField, } -#[derive(PartialEq, Copy, Debug)] +#[derive(PartialEq, Debug, Copy)] pub enum View { Details(Details), Lines, |