Skip to content

Commit

Permalink
Fix errors on FreeBSD.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Jan 9, 2024
1 parent 0409ff9 commit 338395d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions cap-primitives/src/rustix/freebsd/fs/set_permissions_impl.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use crate::fs::Permissions;
use crate::fs::{Permissions, PermissionsExt};
use rustix::fs::{chmodat, AtFlags, Mode};
use std::os::unix::fs::PermissionsExt;
use std::path::Path;
use std::{fs, io};

Expand Down
4 changes: 2 additions & 2 deletions cap-primitives/src/rustix/freebsd/fs/stat_impl.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::fs::{manually, FollowSymlinks, Metadata, MetadataExt};
use crate::fs::{manually, FollowSymlinks, ImplMetadataExt, Metadata};
use rustix::fs::{statat, AtFlags};
use std::path::Path;
use std::{fs, io};
Expand All @@ -18,5 +18,5 @@ pub(crate) fn stat_impl(
} else {
AtFlags::SYMLINK_NOFOLLOW
};
Ok(MetadataExt::from_rustix(statat(start, path, flags)?))
Ok(ImplMetadataExt::from_rustix(statat(start, path, flags)?))
}

0 comments on commit 338395d

Please sign in to comment.