mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-25 12:47:56 +00:00
Avoid cloning Copy types
As recommended by Clippy's clone_on_copy lint.
This commit is contained in:
@@ -100,7 +100,7 @@ impl<'de> Deserializer<'de> {
|
||||
DeserializerSeqVisitor {
|
||||
de: self,
|
||||
len: len,
|
||||
end: end.clone(),
|
||||
end: end,
|
||||
},
|
||||
)
|
||||
);
|
||||
@@ -122,7 +122,7 @@ impl<'de> Deserializer<'de> {
|
||||
DeserializerMapVisitor {
|
||||
de: self,
|
||||
len: len,
|
||||
end: end.clone(),
|
||||
end: end,
|
||||
},
|
||||
)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user