Skip to content

Commit 3e1b714

Browse files
committed
Rustfmt to account for rebase.
1 parent f686751 commit 3e1b714

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

src/codegen/mod.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -1213,8 +1213,10 @@ impl Bitfield {
12131213
.layout(ctx)
12141214
.expect("Bitfield without layout? Gah!");
12151215
let bitfield_int_ty = helpers::integer_type(ctx, bitfield_ty_layout)
1216-
.expect("Should already have verified that the bitfield is \
1217-
representable as an int");
1216+
.expect(
1217+
"Should already have verified that the bitfield is \
1218+
representable as an int",
1219+
);
12181220

12191221
let offset = self.offset_into_unit();
12201222
let width = self.width() as u8;

src/ir/item.rs

+4-5
Original file line numberDiff line numberDiff line change
@@ -526,11 +526,10 @@ impl Item {
526526
/// below this item's lexical scope, meaning that this can be useful for
527527
/// generating relatively stable identifiers within a scope.
528528
pub fn local_id(&self, ctx: &BindgenContext) -> usize {
529-
*self.local_id
530-
.borrow_with(|| {
531-
let parent = ctx.resolve_item(self.parent_id);
532-
parent.next_child_local_id()
533-
})
529+
*self.local_id.borrow_with(|| {
530+
let parent = ctx.resolve_item(self.parent_id);
531+
parent.next_child_local_id()
532+
})
534533
}
535534

536535
/// Get an identifier that differentiates a child of this item of other

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ extern crate cexpr;
2323
#[allow(unused_extern_crates)]
2424
extern crate cfg_if;
2525
extern crate clang_sys;
26-
extern crate rustc_hash;
2726
extern crate lazycell;
27+
extern crate rustc_hash;
2828
#[macro_use]
2929
extern crate lazy_static;
3030
extern crate peeking_take_while;

0 commit comments

Comments
 (0)