diff options
author | Sebastian Thiel <sebastian.thiel@icloud.com> | 2021-07-25 10:45:38 +0800 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2021-07-25 10:47:07 +0800 |
commit | 98c859c71d9ee4be4c19bc436a494f035a241bc1 (patch) | |
tree | ee92efc9e48f9a0b069e16c91c8e4fd4e91b04d0 | |
parent | 64a5589ef93c03cfb0815e893250918dde6a9ea6 (diff) |
upgrade open to v2
-rw-r--r-- | CHANGELOG.md | 4 | ||||
-rw-r--r-- | Cargo.lock | 22 | ||||
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | src/aggregate.rs | 2 |
4 files changed, 15 insertions, 15 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d40ae9..d9edb49 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +#### v2.14.3 + +* upgrade `open` crate to v2 + #### v2.14.2 * `Ctrl-T` to trash (instead of removal) is now an optional default feature, allowing it to be @@ -528,11 +528,11 @@ checksum = "692fcb63b64b1758029e0a96ee63e049ce8c5948587f2f7208df04625e5f6b56" [[package]] name = "open" -version = "1.7.0" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1711eb4b31ce4ad35b0f316d8dfba4fe5c7ad601c448446d84aae7a896627b20" +checksum = "970d0e0b8f5f39e6090f3d612e3a17b8e02b91c860fe9eb33665d1aed1f6f37f" dependencies = [ - "which", + "pathdiff", "winapi", ] @@ -577,6 +577,12 @@ dependencies = [ ] [[package]] +name = "pathdiff" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "877630b3de15c0b64cc52f659345724fbf6bdad9bd9566699fc53688f3c34a34" + +[[package]] name = "percent-encoding" version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -923,16 +929,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f" [[package]] -name = "which" -version = "4.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b55551e42cbdf2ce2bedd2203d0cc08dba002c27510f86dab6d0ce304cba3dfe" -dependencies = [ - "either", - "libc", -] - -[[package]] name = "wild" version = "2.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -35,7 +35,7 @@ unicode-segmentation = { version = "1.3.0", optional = true } crosstermion = { optional = true, version = "0.7.0", default-features = false } tui = { version = "0.15.0", optional = true, default-features = false } tui-react = { version = "0.15.0", optional = true } -open = { version = "1.2.2", optional = true } +open = { version = "2.0.0", optional = true } wild = "2.0.4" [target.'cfg(all(target_os = "macos", target_arch = "aarch64"))'.dependencies] diff --git a/src/aggregate.rs b/src/aggregate.rs index dacaaa7..d42eafe 100644 --- a/src/aggregate.rs +++ b/src/aggregate.rs @@ -2,7 +2,6 @@ use crate::{crossdev, InodeFilter, WalkOptions, WalkResult}; use anyhow::Result; use colored::{Color, Colorize}; use filesize::PathExt; -use std::time::Duration; use std::{ borrow::Cow, io, @@ -12,6 +11,7 @@ use std::{ Arc, }, thread, + time::Duration, }; /// Aggregate the given `paths` and write information about them to `out` in a human-readable format. |