Bump to cap-std 0.25 and io-lifetimes 0.7
Prep for bumping ostree-rs-ext, which will help bump rpm-ostree, which will get it out of having two copies of rustix.
This commit is contained in:
1 parent
b87c8a8e23
commit
63499747b9
2 files changed
+7
-5
No files matched your search
@@ -154,13 +154,15 @@ impl Repo {
|
||||
/// Borrow the directory file descriptor for this repository.
|
||||
#[cfg(feature = "cap-std-apis")]
|
||||
pub fn dfd_borrow(&self) -> io_lifetimes::BorrowedFd {
|
||||
unsafe { io_lifetimes::BorrowedFd::borrow_raw_fd(self.dfd()) }
|
||||
unsafe { io_lifetimes::BorrowedFd::borrow_raw(self.dfd()) }
|
||||
}
|
||||
|
||||
/// Return a new `cap-std` directory reference for this repository.
|
||||
#[cfg(feature = "cap-std-apis")]
|
||||
pub fn dfd_as_dir(&self) -> std::io::Result<cap_std::fs::Dir> {
|
||||
cap_std::fs::Dir::reopen_dir(&self.dfd_borrow())
|
||||
use io_lifetimes::AsFd;
|
||||
let dfd = self.dfd_borrow();
|
||||
cap_std::fs::Dir::reopen_dir(&dfd.as_fd())
|
||||
}
|
||||
|
||||
/// Find all objects reachable from a commit.
|
||||
|
||||
Reference in new issue
Block a user