diff --git a/src/bytes_mut.rs b/src/bytes_mut.rs index 70613b224..450b93279 100644 --- a/src/bytes_mut.rs +++ b/src/bytes_mut.rs @@ -761,6 +761,7 @@ impl BytesMut { /// /// assert_eq!(b"aaabbbcccddd", &buf[..]); /// ``` + #[inline] pub fn extend_from_slice(&mut self, extend: &[u8]) { let cnt = extend.len(); self.reserve(cnt);