summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Thiel <sebastian.thiel@icloud.com>2020-07-22 09:03:09 +0800
committerSebastian Thiel <sebastian.thiel@icloud.com>2020-07-22 09:03:09 +0800
commit72e776d9a3668a81a9502e9560c06a2e500a37c8 (patch)
treecd4f3f55ca5f1516b15df6a65e52947ebe51d9a0
parent1207bdd582c75895354b639fb81006d97076da83 (diff)
update to colored 2.0
-rw-r--r--Cargo.lock4
-rw-r--r--Cargo.toml2
-rw-r--r--src/aggregate.rs3
3 files changed, 4 insertions, 5 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 6c6ac07..1be0aec 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -91,9 +91,9 @@ dependencies = [
[[package]]
name = "colored"
-version = "1.9.3"
+version = "2.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f4ffc801dacf156c5854b9df4f425a626539c3a6ef7893cc0c5084a23f0b6c59"
+checksum = "b3616f750b84d8f0de8a58bda93e08e2a81ad3f523089b05f1dffecab48c6cbd"
dependencies = [
"atty",
"lazy_static",
diff --git a/Cargo.toml b/Cargo.toml
index 7ed7db3..470efbb 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -26,7 +26,7 @@ itertools = "0.9.0"
num_cpus = "1.10.0"
filesize = "0.2.0"
anyhow = "1.0.31"
-colored = "1.9.3"
+colored = "2.0.0"
# 'tui' related
unicode-segmentation = { version = "1.3.0", optional = true }
diff --git a/src/aggregate.rs b/src/aggregate.rs
index 8d16047..044f8e0 100644
--- a/src/aggregate.rs
+++ b/src/aggregate.rs
@@ -2,8 +2,7 @@ use crate::{crossdev, InodeFilter, WalkOptions, WalkResult};
use anyhow::Result;
use colored::{Color, Colorize};
use filesize::PathExt;
-use std::borrow::Cow;
-use std::{io, path::Path};
+use std::{borrow::Cow, io, path::Path};
/// Aggregate the given `paths` and write information about them to `out` in a human-readable format.
/// If `compute_total` is set, it will write an additional line with the total size across all given `paths`.