Skip to content

Commit f2ebe96

Browse files
committed
tidier
1 parent 69f5f0d commit f2ebe96

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/librustc_lint/types.rs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,9 @@ impl<'a, 'tcx> ImproperCTypesVisitor<'a, 'tcx> {
431431
// fields are actually safe.
432432
let mut all_phantom = true;
433433
for field in &def.struct_variant().fields {
434-
let field_ty = cx.trans_normalize_associated_types_in(&field.ty(cx, substs));
434+
let field_ty = cx.trans_normalize_associated_types_in(
435+
&field.ty(cx, substs)
436+
);
435437
let r = self.check_type_for_ffi(cache, field_ty);
436438
match r {
437439
FfiSafe => {
@@ -463,7 +465,9 @@ impl<'a, 'tcx> ImproperCTypesVisitor<'a, 'tcx> {
463465

464466
let mut all_phantom = true;
465467
for field in &def.struct_variant().fields {
466-
let field_ty = cx.trans_normalize_associated_types_in(&field.ty(cx, substs));
468+
let field_ty = cx.trans_normalize_associated_types_in(
469+
&field.ty(cx, substs)
470+
);
467471
let r = self.check_type_for_ffi(cache, field_ty);
468472
match r {
469473
FfiSafe => {
@@ -516,7 +520,9 @@ impl<'a, 'tcx> ImproperCTypesVisitor<'a, 'tcx> {
516520
// Check the contained variants.
517521
for variant in &def.variants {
518522
for field in &variant.fields {
519-
let arg = cx.trans_normalize_associated_types_in(&field.ty(cx, substs));
523+
let arg = cx.trans_normalize_associated_types_in(
524+
&field.ty(cx, substs)
525+
);
520526
let r = self.check_type_for_ffi(cache, arg);
521527
match r {
522528
FfiSafe => {}

0 commit comments

Comments
 (0)