Skip to content

Commit

Permalink
Ran cargo fmt --all
Browse files Browse the repository at this point in the history
  • Loading branch information
regexident committed Aug 3, 2018
1 parent 7c20817 commit 9774fb5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/bindgen/ir/structure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ impl Struct {
let (fields, tuple_struct) = match &item.fields {
&syn::Fields::Unit => (Vec::new(), false),
&syn::Fields::Named(ref fields) => {
let out = fields.named.iter().try_skip_map(|x| x.as_ident_and_type())?;
let out = fields
.named
.iter()
.try_skip_map(|x| x.as_ident_and_type())?;
(out, false)
}
&syn::Fields::Unnamed(ref fields) => {
Expand Down Expand Up @@ -318,8 +321,7 @@ impl Source for Struct {
.map(|&(ref name, ref ty, _)| {
// const-ref args to constructor
(format!("const& {}", arg_renamer(name)), ty.clone())
})
.collect(),
}).collect(),
ListType::Join(","),
);
write!(out, ")");
Expand Down

0 comments on commit 9774fb5

Please sign in to comment.