Access terminology in serde_test
This commit is contained in:
parent
b0dc7ea6da
commit
337c6e91d8
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
use serde::de::{self, Deserialize, DeserializeSeed, EnumAccess, IntoDeserializer, MapAccess,
|
use serde::de::{self, Deserialize, DeserializeSeed, EnumAccess, IntoDeserializer, MapAccess,
|
||||||
SeqAccess, VariantAccess, Visitor};
|
SeqAccess, VariantAccess, Visitor};
|
||||||
use serde::de::value::{MapVisitorDeserializer, SeqVisitorDeserializer};
|
use serde::de::value::{MapAccessDeserializer, SeqAccessDeserializer};
|
||||||
|
|
||||||
use error::Error;
|
use error::Error;
|
||||||
use token::Token;
|
use token::Token;
|
||||||
@ -618,7 +618,7 @@ impl<'de, 'a> MapAccess<'de> for EnumMapVisitor<'a, 'de> {
|
|||||||
len: None,
|
len: None,
|
||||||
end: Token::TupleVariantEnd,
|
end: Token::TupleVariantEnd,
|
||||||
};
|
};
|
||||||
try!(seed.deserialize(SeqVisitorDeserializer::new(visitor)))
|
try!(seed.deserialize(SeqAccessDeserializer::new(visitor)))
|
||||||
};
|
};
|
||||||
try!(self.de.expect_token(Token::TupleVariantEnd));
|
try!(self.de.expect_token(Token::TupleVariantEnd));
|
||||||
Ok(value)
|
Ok(value)
|
||||||
@ -630,7 +630,7 @@ impl<'de, 'a> MapAccess<'de> for EnumMapVisitor<'a, 'de> {
|
|||||||
len: None,
|
len: None,
|
||||||
end: Token::StructVariantEnd,
|
end: Token::StructVariantEnd,
|
||||||
};
|
};
|
||||||
try!(seed.deserialize(MapVisitorDeserializer::new(visitor)))
|
try!(seed.deserialize(MapAccessDeserializer::new(visitor)))
|
||||||
};
|
};
|
||||||
try!(self.de.expect_token(Token::StructVariantEnd));
|
try!(self.de.expect_token(Token::StructVariantEnd));
|
||||||
Ok(value)
|
Ok(value)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user