diff --git a/src/unique_ptr.rs b/src/unique_ptr.rs index ac3872942..1a657cbab 100644 --- a/src/unique_ptr.rs +++ b/src/unique_ptr.rs @@ -14,7 +14,7 @@ use core::mem::{self, MaybeUninit}; use core::ops::{Deref, DerefMut}; use core::pin::Pin; #[cfg(feature = "std")] -use std::io::{self, Read, Write}; +use std::io::{self, IoSlice, Read, Write}; /// Binding to C++ `std::unique_ptr>`. #[repr(C)] @@ -235,7 +235,7 @@ where } #[inline] - fn write_vectored(&mut self, bufs: &[io::IoSlice<'_>]) -> io::Result { + fn write_vectored(&mut self, bufs: &[IoSlice]) -> io::Result { self.pin_mut().write_vectored(bufs) } @@ -250,7 +250,7 @@ where } #[inline] - fn write_fmt(&mut self, fmt: fmt::Arguments<'_>) -> io::Result<()> { + fn write_fmt(&mut self, fmt: fmt::Arguments) -> io::Result<()> { self.pin_mut().write_fmt(fmt) }