From 37d0ca41b65b31040f736be5a3fdd03b8393dc77 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 23 Jun 2022 14:58:00 -0400 Subject: [PATCH] Fix clippy lint in cap-std bits --- rust-bindings/src/repo.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust-bindings/src/repo.rs b/rust-bindings/src/repo.rs index 5d34f98b..a8ddbca1 100644 --- a/rust-bindings/src/repo.rs +++ b/rust-bindings/src/repo.rs @@ -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()) } }