Shortening the syntax
This commit is contained in:
parent
e2db4972be
commit
d0ae713b29
@ -32,7 +32,7 @@ impl Bytes {
|
|||||||
}
|
}
|
||||||
/// Convert back to vector
|
/// Convert back to vector
|
||||||
pub fn to_vec(self) -> Vec<u8> {
|
pub fn to_vec(self) -> Vec<u8> {
|
||||||
let Bytes(x) = self; x
|
self.0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user