@@ -438,14 +438,14 @@ impl<'de, 'a> de::Deserializer<'de> for &'a mut Deserializer<'de> {
438
438
// Deserialization of compound types like sequences and maps happens by
439
439
// passing the visitor an "Access" object that gives it the ability to
440
440
// iterate through the data contained in the sequence.
441
- fn deserialize_seq <V >(mut self , visitor : V ) -> Result <V :: Value >
441
+ fn deserialize_seq <V >(self , visitor : V ) -> Result <V :: Value >
442
442
where
443
443
V : Visitor <'de >,
444
444
{
445
445
// Parse the opening bracket of the sequence.
446
446
if self . next_char ()? == '[' {
447
447
// Give the visitor access to each element of the sequence.
448
- let value = visitor . visit_seq (CommaSeparated :: new (& mut self ))? ;
448
+ let value = visitor . visit_seq (CommaSeparated :: new (self ))? ;
449
449
// Parse the closing bracket of the sequence.
450
450
if self . next_char ()? == ']' {
451
451
Ok (value )
@@ -486,14 +486,14 @@ impl<'de, 'a> de::Deserializer<'de> for &'a mut Deserializer<'de> {
486
486
// Much like `deserialize_seq` but calls the visitors `visit_map` method
487
487
// with a `MapAccess` implementation, rather than the visitor's `visit_seq`
488
488
// method with a `SeqAccess` implementation.
489
- fn deserialize_map <V >(mut self , visitor : V ) -> Result <V :: Value >
489
+ fn deserialize_map <V >(self , visitor : V ) -> Result <V :: Value >
490
490
where
491
491
V : Visitor <'de >,
492
492
{
493
493
// Parse the opening brace of the map.
494
494
if self . next_char ()? == '{' {
495
495
// Give the visitor access to each entry of the map.
496
- let value = visitor . visit_map (CommaSeparated :: new (& mut self ))? ;
496
+ let value = visitor . visit_map (CommaSeparated :: new (self ))? ;
497
497
// Parse the closing brace of the map.
498
498
if self . next_char ()? == '}' {
499
499
Ok (value )
0 commit comments