diff --git a/src/bytes_mut.rs b/src/bytes_mut.rs index 960d8cad3..03ea69db2 100644 --- a/src/bytes_mut.rs +++ b/src/bytes_mut.rs @@ -847,6 +847,7 @@ impl BytesMut { /// split.clear(); /// assert_eq!(true, split.try_reclaim()); /// ``` + #[must_use = "consider BytesMut::reserve if you need a specific capacity"] pub fn try_reclaim(&mut self) -> bool { if !self.is_empty() { return false;