File tree 3 files changed +9
-8
lines changed
3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -1213,8 +1213,10 @@ impl Bitfield {
1213
1213
. layout ( ctx)
1214
1214
. expect ( "Bitfield without layout? Gah!" ) ;
1215
1215
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
+ ) ;
1218
1220
1219
1221
let offset = self . offset_into_unit ( ) ;
1220
1222
let width = self . width ( ) as u8 ;
Original file line number Diff line number Diff line change @@ -526,11 +526,10 @@ impl Item {
526
526
/// below this item's lexical scope, meaning that this can be useful for
527
527
/// generating relatively stable identifiers within a scope.
528
528
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
+ } )
534
533
}
535
534
536
535
/// Get an identifier that differentiates a child of this item of other
Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ extern crate cexpr;
23
23
#[ allow( unused_extern_crates) ]
24
24
extern crate cfg_if;
25
25
extern crate clang_sys;
26
- extern crate rustc_hash;
27
26
extern crate lazycell;
27
+ extern crate rustc_hash;
28
28
#[ macro_use]
29
29
extern crate lazy_static;
30
30
extern crate peeking_take_while;
You can’t perform that action at this time.
0 commit comments