Avoid cloning Copy types

As recommended by Clippy's clone_on_copy lint.
This commit is contained in:
David Tolnay 2017-11-06 22:26:48 -08:00
parent 23fa83941e
commit cfd26c6fda
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -100,7 +100,7 @@ impl<'de> Deserializer<'de> {
DeserializerSeqVisitor { DeserializerSeqVisitor {
de: self, de: self,
len: len, len: len,
end: end.clone(), end: end,
}, },
) )
); );
@ -122,7 +122,7 @@ impl<'de> Deserializer<'de> {
DeserializerMapVisitor { DeserializerMapVisitor {
de: self, de: self,
len: len, len: len,
end: end.clone(), end: end,
}, },
) )
); );