diff --git a/io/src/lib.rs b/io/src/lib.rs index b52c5bdb..bde143e1 100644 --- a/io/src/lib.rs +++ b/io/src/lib.rs @@ -161,7 +161,7 @@ impl BufRead for R { fn consume(&mut self, amount: usize) { std::io::BufRead::consume(self, amount) } } -#[cfg(not(feature = "std"))] +#[cfg(not(feature = "std"))] // Conflicts with blanket impl when "std" is enabled. impl Read for &[u8] { #[inline] fn read(&mut self, buf: &mut [u8]) -> Result { @@ -172,7 +172,7 @@ impl Read for &[u8] { } } -#[cfg(not(feature = "std"))] +#[cfg(not(feature = "std"))] // Conflicts with blanket impl when "std" is enabled. impl BufRead for &[u8] { #[inline] fn fill_buf(&mut self) -> Result<&[u8]> { Ok(self) }