From bc4a6d56f4e1d848c8d50aea97d63d2ac9864116 Mon Sep 17 00:00:00 2001 From: Juan Aguilar Date: Mon, 6 Jul 2020 00:43:26 +0000 Subject: [PATCH] Add inline attribute to BytesMut::as_mut (#410) --- src/bytes_mut.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bytes_mut.rs b/src/bytes_mut.rs index a49ae76ff..4bfe0ffbb 100644 --- a/src/bytes_mut.rs +++ b/src/bytes_mut.rs @@ -1026,6 +1026,7 @@ impl Deref for BytesMut { } impl AsMut<[u8]> for BytesMut { + #[inline] fn as_mut(&mut self) -> &mut [u8] { self.as_slice_mut() }