mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-22 20:38:02 +00:00
Merge branch 'origin/1.0' into 'origin/remote'
Conflicts:
serde_derive/src/de.rs
This commit is contained in:
@@ -242,14 +242,6 @@ declare_tests! {
|
||||
UnitStruct => &[
|
||||
Token::UnitStruct("UnitStruct"),
|
||||
],
|
||||
UnitStruct => &[
|
||||
Token::Seq(Some(0)),
|
||||
Token::SeqEnd,
|
||||
],
|
||||
UnitStruct => &[
|
||||
Token::Seq(None),
|
||||
Token::SeqEnd,
|
||||
],
|
||||
}
|
||||
test_newtype_struct {
|
||||
NewtypeStruct(1) => &[
|
||||
@@ -1036,4 +1028,11 @@ declare_error_tests! {
|
||||
],
|
||||
Error::Message("invalid type: floating point `0`, expected isize".into()),
|
||||
}
|
||||
test_unit_struct_from_seq<UnitStruct> {
|
||||
&[
|
||||
Token::Seq(Some(0)),
|
||||
Token::SeqEnd,
|
||||
],
|
||||
Error::Message("invalid type: sequence, expected unit struct UnitStruct".into()),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user