diff --git a/src/buf/buf_mut.rs b/src/buf/buf_mut.rs index 16e3ffa..f736727 100644 --- a/src/buf/buf_mut.rs +++ b/src/buf/buf_mut.rs @@ -1047,7 +1047,6 @@ unsafe impl BufMut for Vec { // Specialize these methods so they can skip checking `remaining_mut` // and `advance_mut`. - fn put(&mut self, mut src: T) where Self: Sized, @@ -1069,6 +1068,7 @@ unsafe impl BufMut for Vec { } } + #[inline] fn put_slice(&mut self, src: &[u8]) { self.extend_from_slice(src); }