Shortening the syntax

This commit is contained in:
Tomasz Drwięga 2016-05-27 13:05:54 +02:00
parent e2db4972be
commit d0ae713b29

View File

@ -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
} }
} }