diff --git a/src/ext_slice.rs b/src/ext_slice.rs index f413a85..33bf6c5 100644 --- a/src/ext_slice.rs +++ b/src/ext_slice.rs @@ -1542,6 +1542,7 @@ pub trait ByteSlice: private::Sealed { /// assert_eq!(s, "ZfZoZoZ".as_bytes()); /// ``` #[cfg(feature = "alloc")] + #[must_use] #[inline] fn replace, R: AsRef<[u8]>>( &self, @@ -1588,6 +1589,7 @@ pub trait ByteSlice: private::Sealed { /// assert_eq!(s, "ZfZoo".as_bytes()); /// ``` #[cfg(feature = "alloc")] + #[must_use] #[inline] fn replacen, R: AsRef<[u8]>>( &self,