Format with rustfmt 2018-12-10
This commit is contained in:
parent
7e5066b878
commit
eb7250792b
@ -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() {
|
||||
|
@ -1420,12 +1420,9 @@ fn test_internally_tagged_braced_struct_with_zero_fields() {
|
||||
struct S {}
|
||||
|
||||
assert_tokens(
|
||||
&S{ },
|
||||
&S {},
|
||||
&[
|
||||
Token::Struct {
|
||||
name: "S",
|
||||
len: 1,
|
||||
},
|
||||
Token::Struct { name: "S", len: 1 },
|
||||
Token::Str("type"),
|
||||
Token::Str("S"),
|
||||
Token::StructEnd,
|
||||
|
Loading…
Reference in New Issue
Block a user