expunge &Vec<T> pattern (#1579)

* expunge &Vec<T> pattern

* fix travis
This commit is contained in:
Robert Habermeier
2016-07-12 10:28:35 +02:00
committed by Gav Wood
parent 92fd00f41e
commit 7200cfcbc9
13 changed files with 48 additions and 49 deletions

View File

@@ -40,9 +40,9 @@ impl Into<Vec<u8>> for Bytes {
}
impl Deref for Bytes {
type Target = Vec<u8>;
type Target = [u8];
fn deref(&self) -> &Vec<u8> {
fn deref(&self) -> &[u8] {
&self.0
}
}