Skip to content

Commit bc4a6d5

Browse files
authored
Add inline attribute to BytesMut::as_mut (#410)
1 parent 3603cec commit bc4a6d5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎src/bytes_mut.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,6 +1026,7 @@ impl Deref for BytesMut {
10261026
}
10271027

10281028
impl AsMut<[u8]> for BytesMut {
1029+
#[inline]
10291030
fn as_mut(&mut self) -> &mut [u8] {
10301031
self.as_slice_mut()
10311032
}

0 commit comments

Comments
 (0)