Skip to content

Commit 87444fc

Browse files
committed
Ran cargo fmt --all
1 parent 7c20817 commit 87444fc

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

src/bindgen/ir/function.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ impl Function {
114114
r.apply_to_snake_case(&x.0, IdentifierType::FunctionArg),
115115
x.1.clone(),
116116
)
117-
}).collect()
117+
})
118+
.collect()
118119
}
119120
}
120121
}

src/bindgen/ir/structure.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ impl Struct {
4646
let (fields, tuple_struct) = match &item.fields {
4747
&syn::Fields::Unit => (Vec::new(), false),
4848
&syn::Fields::Named(ref fields) => {
49-
let out = fields.named.iter().try_skip_map(|x| x.as_ident_and_type())?;
49+
let out = fields
50+
.named
51+
.iter()
52+
.try_skip_map(|x| x.as_ident_and_type())?;
5053
(out, false)
5154
}
5255
&syn::Fields::Unnamed(ref fields) => {
@@ -318,8 +321,7 @@ impl Source for Struct {
318321
.map(|&(ref name, ref ty, _)| {
319322
// const-ref args to constructor
320323
(format!("const& {}", arg_renamer(name)), ty.clone())
321-
})
322-
.collect(),
324+
}).collect(),
323325
ListType::Join(","),
324326
);
325327
write!(out, ")");

src/bindgen/ir/union.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ impl Item for Union {
156156
x.1.clone(),
157157
x.2.clone(),
158158
)
159-
}).collect();
159+
})
160+
.collect();
160161
} else if self.tuple_union {
161162
// If we don't have any rules for a tuple union, prefix them with
162163
// an underscore so it still compiles

0 commit comments

Comments
 (0)