Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcAntoine-Arnaud committed May 27, 2018
1 parent 42369b0 commit e3cd73b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions yaserde_derive/src/de/expand_struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ pub fn parse(
Some(FieldType::FieldTypeString) => {
build_default_value(label, &quote!{String}, &quote!{"".to_string()})
}
Some(FieldType::FieldTypeBool) => {
build_default_value(label, &quote!{bool}, &quote!{false})
}
Some(FieldType::FieldTypeBool) => build_default_value(label, &quote!{bool}, &quote!{false}),
Some(FieldType::FieldTypeI8) => build_default_value(label, &quote!{i8}, &quote!{0}),
Some(FieldType::FieldTypeU8) => build_default_value(label, &quote!{u8}, &quote!{0}),
Some(FieldType::FieldTypeI16) => build_default_value(label, &quote!{i16}, &quote!{0}),
Expand Down

0 comments on commit e3cd73b

Please sign in to comment.