Skip to content

Commit 7f4c474

Browse files
committed
fixed tidy
1 parent 1c0cd09 commit 7f4c474

File tree

1 file changed

+2
-9
lines changed
  • compiler/rustc_hir_typeck/src/fn_ctxt

1 file changed

+2
-9
lines changed

compiler/rustc_hir_typeck/src/fn_ctxt/checks.rs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1561,15 +1561,8 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
15611561
})
15621562
})
15631563
);
1564-
let x = if x.starts_with("<Self>::") {
1565-
x[8..].to_owned()
1566-
} else {
1567-
x
1568-
};
1569-
(
1570-
x,
1571-
error_span,
1572-
)
1564+
let x = if x.starts_with("<Self>::") { x[8..].to_owned() } else { x };
1565+
(x, error_span)
15731566
};
15741567
let mut needs_comma = false;
15751568
for (expected_idx, provided_idx) in matched_inputs.iter_enumerated() {

0 commit comments

Comments
 (0)