From 98c859c71d9ee4be4c19bc436a494f035a241bc1 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Sun, 25 Jul 2021 10:45:38 +0800 Subject: upgrade open to v2 --- CHANGELOG.md | 4 ++++ Cargo.lock | 22 +++++++++------------- Cargo.toml | 2 +- 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 diff --git a/Cargo.lock b/Cargo.lock index 8688326..550cc13 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -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", ] @@ -576,6 +576,12 @@ dependencies = [ "winapi", ] +[[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" @@ -922,16 +928,6 @@ version = "0.10.0+wasi-snapshot-preview1" 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" diff --git a/Cargo.toml b/Cargo.toml index 816525b..e761eab 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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. -- cgit v1.2.3