mirror of
https://gitee.com/openharmony/third_party_rust_serde
synced 2024-11-23 06:50:23 +00:00
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,
|
||||
SeqAccess, VariantAccess, Visitor};
|
||||
use serde::de::value::{MapVisitorDeserializer, SeqVisitorDeserializer};
|
||||
use serde::de::value::{MapAccessDeserializer, SeqAccessDeserializer};
|
||||
|
||||
use error::Error;
|
||||
use token::Token;
|
||||
@ -618,7 +618,7 @@ impl<'de, 'a> MapAccess<'de> for EnumMapVisitor<'a, 'de> {
|
||||
len: None,
|
||||
end: Token::TupleVariantEnd,
|
||||
};
|
||||
try!(seed.deserialize(SeqVisitorDeserializer::new(visitor)))
|
||||
try!(seed.deserialize(SeqAccessDeserializer::new(visitor)))
|
||||
};
|
||||
try!(self.de.expect_token(Token::TupleVariantEnd));
|
||||
Ok(value)
|
||||
@ -630,7 +630,7 @@ impl<'de, 'a> MapAccess<'de> for EnumMapVisitor<'a, 'de> {
|
||||
len: None,
|
||||
end: Token::StructVariantEnd,
|
||||
};
|
||||
try!(seed.deserialize(MapVisitorDeserializer::new(visitor)))
|
||||
try!(seed.deserialize(MapAccessDeserializer::new(visitor)))
|
||||
};
|
||||
try!(self.de.expect_token(Token::StructVariantEnd));
|
||||
Ok(value)
|
||||
|
Loading…
Reference in New Issue
Block a user