Skip to content
Myr

Format with rustfmt 2018-12-10

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Tolnay · committed by David Tolnay · parent 7e5066b · Browse files · 2 files+3 added−7 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+3 added−7 removed

  • tests:+2 added−5 removed
  • other:+1 added−2 removed

2 files+3 added−7 removed

modified:serde_derive/src/ser.rs+1 added-2 removed
317 unmodified lines
318 .iter()319 .filter(|&field| !field.attrs.skip_serializing())320 .peekable();321322 let let_mut = mut_if(serialized_fields.peek().is_some() ||323 additional_field_count > 0);322 let let_mut = mut_if(serialized_fields.peek().is_some() || additional_field_count > 0);323324 let len = serialized_fields325 .map(|field| match field.attrs.skip_serializing_if() {326 None => quote!(1),
974 unmodified lines
modified:test_suite/tests/test_macros.rs+2 added-5 removed
1418 unmodified lines
1419 #[serde(tag = "type")]1420 struct S {}14211422 assert_tokens(1423 &S{ },1423 &S {},1424 &[1425 Token::Struct {1426 name: "S",1427 len: 1,1428 },1425 Token::Struct { name: "S", len: 1 },1426 Token::Str("type"),1427 Token::Str("S"),1428 Token::StructEnd,1429 ],
375 unmodified lines