Format PR 2266 tests with rustfmt

This commit is contained in:
David Tolnay 2023-07-26 13:41:56 -07:00
parent 85d5c1fd38
commit 2102e1aa42
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -2266,14 +2266,14 @@ fn test_internally_tagged_enum_with_skipped_conflict() {
#[serde(tag = "t")]
enum Data {
A,
#[serde(skip)]
B {
t: String
},
C {
#[serde(default, skip)]
t: String
},
#[serde(skip)]
B {
t: String,
},
C {
#[serde(default, skip)]
t: String,
},
}
let _data = Data::B { t: "".to_string() };
@ -2283,7 +2283,10 @@ fn test_internally_tagged_enum_with_skipped_conflict() {
assert_tokens(
&data,
&[
Token::Struct { name: "Data", len: 1 },
Token::Struct {
name: "Data",
len: 1,
},
Token::Str("t"),
Token::Str("C"),
Token::StructEnd,