@@ -1274,7 +1274,8 @@ impl CodeGenerator for TemplateInstantiation {
1274
1274
let fn_name = if compile_time {
1275
1275
None
1276
1276
} else {
1277
- let mut fn_name = format ! ( "__bindgen_test_layout_{name}_instantiation" ) ;
1277
+ let mut fn_name =
1278
+ format ! ( "__bindgen_test_layout_{name}_instantiation" ) ;
1278
1279
let times_seen = result. overload_number ( & fn_name) ;
1279
1280
if times_seen > 0 {
1280
1281
write ! ( & mut fn_name, "_{times_seen}" ) . unwrap ( ) ;
@@ -1290,8 +1291,10 @@ impl CodeGenerator for TemplateInstantiation {
1290
1291
let align_of_expr = quote ! {
1291
1292
:: #prefix:: mem:: align_of:: <#ident>( )
1292
1293
} ;
1293
- let size_of_err = format ! ( "Size of template specialization: {name}" ) ;
1294
- let align_of_err = format ! ( "Align of template specialization: {name}" ) ;
1294
+ let size_of_err =
1295
+ format ! ( "Size of template specialization: {name}" ) ;
1296
+ let align_of_err =
1297
+ format ! ( "Align of template specialization: {name}" ) ;
1295
1298
1296
1299
if compile_time {
1297
1300
result. push ( quote ! {
@@ -2358,7 +2361,8 @@ impl CodeGenerator for CompInfo {
2358
2361
let fn_name = if compile_time {
2359
2362
None
2360
2363
} else {
2361
- let fn_name = format ! ( "bindgen_test_layout_{canonical_ident}" ) ;
2364
+ let fn_name =
2365
+ format ! ( "bindgen_test_layout_{canonical_ident}" ) ;
2362
2366
Some ( ctx. rust_ident_raw ( fn_name) )
2363
2367
} ;
2364
2368
let prefix = ctx. trait_prefix ( ) ;
@@ -2371,7 +2375,8 @@ impl CodeGenerator for CompInfo {
2371
2375
let size = layout. size ;
2372
2376
let align = layout. align ;
2373
2377
let size_of_err = format ! ( "Size of {canonical_ident}" ) ;
2374
- let align_of_err = format ! ( "Alignment of {canonical_ident}" ) ;
2378
+ let align_of_err =
2379
+ format ! ( "Alignment of {canonical_ident}" ) ;
2375
2380
2376
2381
let check_struct_align = if align >
2377
2382
ctx. target_pointer_size ( ) &&
@@ -2429,7 +2434,9 @@ impl CodeGenerator for CompInfo {
2429
2434
. collect ( )
2430
2435
} ;
2431
2436
2432
- let uninit_decl = if check_field_offset. is_empty ( ) || compile_time {
2437
+ let uninit_decl = if check_field_offset. is_empty ( ) ||
2438
+ compile_time
2439
+ {
2433
2440
None
2434
2441
} else {
2435
2442
// FIXME: When MSRV >= 1.59.0, we can use
0 commit comments