Skip to content

Commit 5d7cfab

Browse files
committed
df: replace nix by rustix
1 parent 0beca7c commit 5d7cfab

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/uu/df/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ thiserror = { workspace = true }
2626
fluent = { workspace = true }
2727

2828
[target.'cfg(unix)'.dependencies]
29-
nix = { workspace = true, features = ["fs"] }
29+
rustix = { workspace = true, features = ["fs"] }
3030

3131
[dev-dependencies]
3232
divan = { workspace = true }

src/uu/df/src/df.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ fn get_all_filesystems(opt: &Options) -> UResult<Vec<Filesystem>> {
301301
// Run a sync call before any operation if so instructed.
302302
if opt.sync {
303303
#[cfg(not(any(windows, target_os = "redox")))]
304-
nix::unistd::sync();
304+
rustix::fs::sync();
305305
}
306306

307307
let mut mounts = vec![];

0 commit comments

Comments
 (0)