Fix clippy lint in cap-std bits
authorColin Walters <walters@verbum.org>
Thu, 23 Jun 2022 18:58:00 +0000 (14:58 -0400)
committerColin Walters <walters@verbum.org>
Thu, 23 Jun 2022 18:58:00 +0000 (14:58 -0400)
rust-bindings/src/repo.rs

index 5d34f98b44f55730b9cea7a1aea54a909ab3619b..a8ddbca1b892805c2f94ef49135b880b629ea2b0 100644 (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()) }
     }