Token::Seq instead of Token::Tuple used in LibraryItem serializing test
@@ -8,7 +8,7 @@ use serde_test::{assert_de_tokens, assert_tokens, Token};
#[test]
fn ser_de_library_item() {
assert_tokens(
- &[
+ &vec![
LibraryItem {
id: "id".to_owned(),
name: "name".to_owned(),
@@ -38,7 +38,7 @@ fn ser_de_library_item() {
],
&[
vec![
- Token::Tuple { len: 2 },
+ Token::Seq { len: Some(2) },
Token::Struct {
name: "LibraryItem",
len: 11,
@@ -103,12 +103,12 @@ fn ser_de_library_item() {
LibraryItemState::default_token(),
vec![Token::Str("behaviorHints")],
LibraryItemBehaviorHints::default_token(),
- vec![Token::StructEnd, Token::TupleEnd],
+ vec![Token::StructEnd, Token::SeqEnd],
]
.concat(),
);
assert_de_tokens(
- &[
+ &vec![
LibraryItem {
id: "id".to_owned(),
name: "name".to_owned(),
