diff --git a/src/bytes.rs b/src/bytes.rs index 54c411f..364ca3e 100644 --- a/src/bytes.rs +++ b/src/bytes.rs @@ -465,6 +465,7 @@ impl Bytes { /// let b = Bytes::from(&b"hello"[..]); /// assert_eq!(b.len(), 5); /// ``` + #[inline] pub fn len(&self) -> usize { self.inner.len() } @@ -479,6 +480,7 @@ impl Bytes { /// let b = Bytes::new(); /// assert!(b.is_empty()); /// ``` + #[inline] pub fn is_empty(&self) -> bool { self.inner.is_empty() }