diff --git a/block/src/async_io.rs b/block/src/async_io.rs index 6b77d6a9c..3f37bd6e3 100644 --- a/block/src/async_io.rs +++ b/block/src/async_io.rs @@ -65,7 +65,7 @@ pub trait DiskFile: Send { /// /// The file descriptor is supposed to be used for `fcntl()` calls but no /// other operation. - fn fd(&mut self) -> BorrowedDiskFd; + fn fd(&mut self) -> BorrowedDiskFd<'_>; } #[derive(Error, Debug)] diff --git a/block/src/lib.rs b/block/src/lib.rs index 2ffd13a44..83b115af2 100644 --- a/block/src/lib.rs +++ b/block/src/lib.rs @@ -744,7 +744,7 @@ where Ok(()) } - fn file(&mut self) -> MutexGuard; + fn file(&mut self) -> MutexGuard<'_, F>; } pub enum ImageType {