update dependencies and fix build

This commit is contained in:
rabite 2019-12-09 01:21:59 +01:00
parent d42f7d328c
commit 17c2522124
3 changed files with 410 additions and 462 deletions

861
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -31,7 +31,7 @@ failure_derive = "0.1.1"
notify = "4.0.12"
parse-ansi = "0.1.6"
signal-notify = "0.1.3"
systemstat = "0.1.4"
systemstat = "0.1.5"
mime_guess = "2.0.0-alpha.6"
async_value = "0.2"
osstrtools = "0.1.9"
@ -81,8 +81,7 @@ required-features = ["img"]
[patch.crates-io]
systemstat = { git = 'https://github.com/myfreeweb/systemstat', tag="v0.1.4" }
# These options increase performance and generate a smaller binary
[profile.release]

View File

@ -76,10 +76,12 @@ impl FsExt for Filesystem {
}
fn get_total(&self) -> String {
self.total.to_string(false)
self.total.to_string_as(false)
}
fn get_free(&self) -> String {
self.avail.to_string(false)
self.avail.to_string_as(false)
}
}