df: replace nix by rustix

This commit is contained in:
Sylvestre Ledru
2026-04-01 13:20:31 +09:00
parent 0beca7cb84
commit 5d7cfab9cf
3 changed files with 3 additions and 3 deletions
Generated
+1 -1
View File
@@ -3461,7 +3461,7 @@ dependencies = [
"clap",
"codspeed-divan-compat",
"fluent",
"nix",
"rustix",
"tempfile",
"thiserror 2.0.18",
"unicode-width 0.2.2",
+1 -1
View File
@@ -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
View File
@@ -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![];