Use imdl-indicatif

The `0.1.0` release is coming up, and a prerequisite to publish to
crates.io is to not depend on any non crates.io dependency.

We're using the `{binary_bytes_per_sec}` formatting spec, which is only
in my fork.

I published my fork to crates.io as `imdl-indicatif`, and this diff
starts depending on that fork.

type: distribution
This commit is contained in:
Casey Rodarmor 2020-03-15 23:02:26 -07:00
parent 0033e8381f
commit 1cac9ab924
No known key found for this signature in database
GPG Key ID: 556186B153EC6FE0
3 changed files with 6 additions and 5 deletions

7
Cargo.lock generated
View File

@ -315,7 +315,7 @@ dependencies = [
"chrono", "chrono",
"console", "console",
"globset", "globset",
"indicatif", "imdl-indicatif",
"indoc", "indoc",
"lazy_static", "lazy_static",
"libc", "libc",
@ -340,9 +340,10 @@ dependencies = [
] ]
[[package]] [[package]]
name = "indicatif" name = "imdl-indicatif"
version = "0.14.0" version = "0.14.0"
source = "git+https://github.com/casey/indicatif.git?branch=binary-bytes-per-sec#a22e3bdce304d195890774688a1660427c59f2fd" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6cd52c6090487185174be0dc0c3b2ba6e8ea687422d9de66fa244e0bf9339b28"
dependencies = [ dependencies = [
"console", "console",
"lazy_static", "lazy_static",

View File

@ -42,8 +42,7 @@ features = ["serde"]
[dependencies.indicatif] [dependencies.indicatif]
version = "0.14.0" version = "0.14.0"
git = "https://github.com/casey/indicatif.git" package = "imdl-indicatif"
branch = "binary-bytes-per-sec"
[dependencies.serde] [dependencies.serde]
version = "1.0.103" version = "1.0.103"

View File

@ -22,6 +22,7 @@ impl FileStatus {
self.error.is_none() self.error.is_none()
} }
#[cfg(test)]
pub(crate) fn is_bad(&self) -> bool { pub(crate) fn is_bad(&self) -> bool {
!self.is_good() !self.is_good()
} }