Fix clippy lint in cap-std bits

This commit is contained in:
Colin Walters 2022-06-23 14:58:00 -04:00
parent 001839b35f
commit 37d0ca41b6

View File

@ -153,7 +153,7 @@ impl Repo {
/// Borrow the directory file descriptor for this repository.
#[cfg(feature = "cap-std-apis")]
pub fn dfd_borrow<'a>(&'a self) -> io_lifetimes::BorrowedFd<'a> {
pub fn dfd_borrow(&self) -> io_lifetimes::BorrowedFd {
unsafe { io_lifetimes::BorrowedFd::borrow_raw_fd(self.dfd()) }
}