diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2020-04-18 19:10:57 -0400 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2020-04-18 19:10:57 -0400 |
commit | 3fa40b654a96df76f445da7da3a35bce69730ca8 (patch) | |
tree | fa80a7c2b8d622f3adcd5bbb1585ab99d0bccebd /src/util | |
parent | 06b9a79c02717463ed360077a837534b362784b3 (diff) |
update to tui-rs 0.9
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/format.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/format.rs b/src/util/format.rs index 7c0e23f..e690513 100644 --- a/src/util/format.rs +++ b/src/util/format.rs @@ -2,7 +2,7 @@ use std::time; use super::unix; -pub fn file_size_to_string(mut file_size: u64) -> String { +pub fn file_size_to_string(file_size: u64) -> String { const FILE_UNITS: [&str; 6] = ["B", "K", "M", "G", "T", "E"]; const CONV_RATE: f64 = 1024.0; let mut file_size: f64 = file_size as f64; |