Skip to content
Snippets Groups Projects
Commit 6750a26f authored by Paul Collier's avatar Paul Collier Committed by Carl Lerche
Browse files

impl AsMut<[u8]> for BytesMut (#143) (#144)

parent b9ccd2a8
No related branches found
No related tags found
No related merge requests found
......@@ -1405,6 +1405,12 @@ impl ops::Deref for BytesMut {
}
}
impl AsMut<[u8]> for BytesMut {
fn as_mut(&mut self) -> &mut [u8] {
self.inner.as_mut()
}
}
impl ops::DerefMut for BytesMut {
#[inline]
fn deref_mut(&mut self) -> &mut [u8] {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment