mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-02 14:07:46 +00:00
fix lint, fmt & udeps errors
This commit is contained in:
parent
62341112df
commit
7fa720d311
3 changed files with 3 additions and 6 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
@ -3238,7 +3238,6 @@ dependencies = [
|
||||||
"data-encoding-macro",
|
"data-encoding-macro",
|
||||||
"dns-lookup",
|
"dns-lookup",
|
||||||
"dunce",
|
"dunce",
|
||||||
"getopts",
|
|
||||||
"lazy_static",
|
"lazy_static",
|
||||||
"libc",
|
"libc",
|
||||||
"nix 0.23.1",
|
"nix 0.23.1",
|
||||||
|
|
|
@ -18,7 +18,7 @@ use std::env;
|
||||||
use std::fs;
|
use std::fs;
|
||||||
#[cfg(not(windows))]
|
#[cfg(not(windows))]
|
||||||
use std::fs::Metadata;
|
use std::fs::Metadata;
|
||||||
use std::io::{stderr, ErrorKind, Result, Write};
|
use std::io::{ErrorKind, Result};
|
||||||
use std::iter;
|
use std::iter;
|
||||||
#[cfg(not(windows))]
|
#[cfg(not(windows))]
|
||||||
use std::os::unix::fs::MetadataExt;
|
use std::os::unix::fs::MetadataExt;
|
||||||
|
@ -292,13 +292,12 @@ fn du(
|
||||||
let read = match fs::read_dir(&my_stat.path) {
|
let read = match fs::read_dir(&my_stat.path) {
|
||||||
Ok(read) => read,
|
Ok(read) => read,
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
writeln!(
|
eprintln!(
|
||||||
stderr(),
|
|
||||||
"{}: cannot read directory {}: {}",
|
"{}: cannot read directory {}: {}",
|
||||||
options.util_name,
|
options.util_name,
|
||||||
my_stat.path.quote(),
|
my_stat.path.quote(),
|
||||||
e
|
e
|
||||||
).unwrap();
|
);
|
||||||
return Box::new(iter::once(my_stat));
|
return Box::new(iter::once(my_stat));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -19,7 +19,6 @@ path="src/lib/lib.rs"
|
||||||
clap = "2.33.3"
|
clap = "2.33.3"
|
||||||
dns-lookup = { version="1.0.5", optional=true }
|
dns-lookup = { version="1.0.5", optional=true }
|
||||||
dunce = "1.0.0"
|
dunce = "1.0.0"
|
||||||
getopts = "<= 0.2.21"
|
|
||||||
wild = "2.0"
|
wild = "2.0"
|
||||||
# * optional
|
# * optional
|
||||||
thiserror = { version="1.0", optional=true }
|
thiserror = { version="1.0", optional=true }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue