Fix clippy lint in cap-std bits
This commit is contained in:
parent
001839b35f
commit
37d0ca41b6
|
|
@ -153,7 +153,7 @@ impl Repo {
|
||||||
|
|
||||||
/// Borrow the directory file descriptor for this repository.
|
/// Borrow the directory file descriptor for this repository.
|
||||||
#[cfg(feature = "cap-std-apis")]
|
#[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()) }
|
unsafe { io_lifetimes::BorrowedFd::borrow_raw_fd(self.dfd()) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue