You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
The key has expired.
Added
Tokens now implements IntoIterator<Item = Token>.
The token module is now public, containing both Token (which is also exposed in the root module) and Tokens.
Comparison with nested Token::Unordereds is now allowed and correctly handled.
token::IntoIter type for iterating over the Tokensstruct.
Changed
Deserializer::build() now takes the tokens as a parameter. These tokens can now be any type that implements IntoIterator<Item = Token>.
Tokens is no longer exposed in the root module, instead being available at token::Tokens.
The internals of Tokens are no longer public. Tokens can no longer be constructed by user code, and is now only returned by the Serializer.
Comparison with a Tokens can now be done with any type that implements IntoIterator<Item = &Token>.
de::Builder::build() now only requires &self instead of &mut self.
Error::ExpectedToken variant has been replaced by Error::ExpectedSeqEnd, Error::ExpectedTupleEnd, Error::ExpectedTupleStructEnd, Error::ExpectedTupleVariantEnd, Error::ExpectedMapEnd, Error::ExpectedStructEnd, and Error::ExpectedStructVariantEnd variants.
Removed
From<Token> implementation for serde::de::Unexpected.