Remove useless shrink_to_fit in message encoder

This commit is contained in:
Patrick Auernig 2018-03-23 22:54:53 +01:00
parent e853fa94a1
commit c5ae80007e
1 changed files with 0 additions and 1 deletions

View File

@ -49,7 +49,6 @@ impl Message {
pub fn encode(&self) -> Result<Vec<u8>> {
let mut bytes: Vec<u8> = vec![0; 2*4+self.message.len()];
bytes.write_with(&mut 0, self.clone(), LE)?;
bytes.shrink_to_fit();
Ok(bytes)
}