diff --git a/io/src/lib.rs b/io/src/lib.rs index f397ba2f..55ee4a56 100644 --- a/io/src/lib.rs +++ b/io/src/lib.rs @@ -67,7 +67,7 @@ pub trait Read { /// /// Similar to `std::io::Read::read_to_end` but with the DOS protection. #[doc(alias = "read_to_end")] - #[cfg(any(feature = "alloc", feature = "std"))] + #[cfg(feature = "alloc")] #[inline] fn read_to_limit(&mut self, buf: &mut Vec, limit: u64) -> Result { self.take(limit).read_to_end(buf) @@ -97,7 +97,7 @@ pub struct Take<'a, R: Read + ?Sized> { impl<'a, R: Read + ?Sized> Take<'a, R> { /// Reads all bytes until EOF from the underlying reader into `buf`. - #[cfg(any(feature = "alloc", feature = "std"))] + #[cfg(feature = "alloc")] #[inline] pub fn read_to_end(&mut self, buf: &mut Vec) -> Result { let mut read: usize = 0;