Format with rustfmt 2018-12-10

This commit is contained in:
David Tolnay 2018-12-28 12:19:32 -05:00
parent 7e5066b878
commit eb7250792b
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
2 changed files with 3 additions and 7 deletions

View File

@ -319,8 +319,7 @@ fn serialize_struct_as_struct(
.filter(|&field| !field.attrs.skip_serializing())
.peekable();
let let_mut = mut_if(serialized_fields.peek().is_some() ||
additional_field_count > 0);
let let_mut = mut_if(serialized_fields.peek().is_some() || additional_field_count > 0);
let len = serialized_fields
.map(|field| match field.attrs.skip_serializing_if() {

View File

@ -1422,10 +1422,7 @@ fn test_internally_tagged_braced_struct_with_zero_fields() {
assert_tokens(
&S {},
&[
Token::Struct {
name: "S",
len: 1,
},
Token::Struct { name: "S", len: 1 },
Token::Str("type"),
Token::Str("S"),
Token::StructEnd,