mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-10-28 22:39:50 +00:00
Remove unused imports and needless borrows
This commit is contained in:
1 parent
74eb2f52b8
commit
004dcaec3b
5 files changed
+6
-10
No files matched your search
+2
-2
@@ -41,7 +41,7 @@ impl<'a> From<&'a [u8]> for Bytes<'a> {
|
||||
impl<'a> From<&'a Vec<u8>> for Bytes<'a> {
|
||||
fn from(bytes: &'a Vec<u8>) -> Self {
|
||||
Bytes {
|
||||
bytes: &bytes,
|
||||
bytes: bytes,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -165,7 +165,7 @@ mod bytebuf {
|
||||
fn serialize<S>(&self, serializer: &mut S) -> Result<(), S::Error>
|
||||
where S: ser::Serializer
|
||||
{
|
||||
serializer.serialize_bytes(&self)
|
||||
serializer.serialize_bytes(self)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user