Skip to content

Commit

Permalink
Add inline attribute to BytesMut::as_mut (#410)
Browse files Browse the repository at this point in the history
  • Loading branch information
zzau13 authored Jul 6, 2020
1 parent 3603cec commit bc4a6d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bytes_mut.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit bc4a6d5

Please sign in to comment.