mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
df: replace nix by rustix
This commit is contained in:
Generated
+1
-1
@@ -3461,7 +3461,7 @@ dependencies = [
|
||||
"clap",
|
||||
"codspeed-divan-compat",
|
||||
"fluent",
|
||||
"nix",
|
||||
"rustix",
|
||||
"tempfile",
|
||||
"thiserror 2.0.18",
|
||||
"unicode-width 0.2.2",
|
||||
|
||||
@@ -26,7 +26,7 @@ thiserror = { workspace = true }
|
||||
fluent = { workspace = true }
|
||||
|
||||
[target.'cfg(unix)'.dependencies]
|
||||
nix = { workspace = true, features = ["fs"] }
|
||||
rustix = { workspace = true, features = ["fs"] }
|
||||
|
||||
[dev-dependencies]
|
||||
divan = { workspace = true }
|
||||
|
||||
+1
-1
@@ -301,7 +301,7 @@ fn get_all_filesystems(opt: &Options) -> UResult<Vec<Filesystem>> {
|
||||
// Run a sync call before any operation if so instructed.
|
||||
if opt.sync {
|
||||
#[cfg(not(any(windows, target_os = "redox")))]
|
||||
nix::unistd::sync();
|
||||
rustix::fs::sync();
|
||||
}
|
||||
|
||||
let mut mounts = vec![];
|
||||
|
||||
Reference in New Issue
Block a user