diff options
author | Sebastian Thiel <sebastian.thiel@icloud.com> | 2019-11-06 07:28:27 +0800 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2019-11-06 07:28:27 +0800 |
commit | 543f7f3948c26250a8fc6ebf79a49f3ddfa3cb63 (patch) | |
tree | 7f565c75829ae546960f06281fbf72eb38404f02 /src | |
parent | 0627932c3c908b1d7ec48e728687a6eac7f291b7 (diff) |
Update all dependencies to latest version
Diffstat (limited to 'src')
-rw-r--r-- | src/interactive/app/handlers.rs | 3 | ||||
-rw-r--r-- | src/options.rs | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/interactive/app/handlers.rs b/src/interactive/app/handlers.rs index 96dddb7..bec1477 100644 --- a/src/interactive/app/handlers.rs +++ b/src/interactive/app/handlers.rs @@ -307,7 +307,8 @@ fn delete_directory_recursively(path: PathBuf) -> Result<(), usize> { let mut num_errors = 0; while let Some(path) = files_or_dirs.pop() { let assume_symlink_to_try_deletion = true; - let is_symlink = path.symlink_metadata() + let is_symlink = path + .symlink_metadata() .map(|m| m.file_type().is_symlink()) .unwrap_or(assume_symlink_to_try_deletion); if is_symlink { diff --git a/src/options.rs b/src/options.rs index 819aa01..2aa75d3 100644 --- a/src/options.rs +++ b/src/options.rs @@ -31,7 +31,7 @@ impl From<ByteFormat> for LibraryByteFormat { #[derive(Debug, StructOpt)] #[structopt(name = "dua", about = "A tool to learn about disk usage, fast!")] -#[structopt(raw(setting = "structopt::clap::AppSettings::ColoredHelp"))] +#[structopt(setting = structopt::clap::AppSettings::ColoredHelp)] pub struct Args { #[structopt(subcommand)] pub command: Option<Command>, |