Skip to content

Commit ca2ba5b

Browse files
authored
Fix formatting
1 parent cb33bb3 commit ca2ba5b

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

  • compiler/rustc_hir_typeck/src

compiler/rustc_hir_typeck/src/pat.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1418,14 +1418,12 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
14181418
// so we don't suggest moving something to the type that does not exist
14191419
hir::Node::Param(hir::Param { ty_span, pat, .. }) if pat.span != *ty_span => {
14201420
err.multipart_suggestion(
1421-
format!(
1422-
"to take parameter `{binding}` by reference, move `&{pin_and_mut}` to the type"
1423-
),
1421+
format!("to take parameter `{binding}` by reference, move `&{pin_and_mut}` to the type"),
14241422
vec![
14251423
(pat.span.until(inner.span), "".to_owned()),
14261424
(ty_span.shrink_to_lo(), format!("&{}", pinned.prefix_str(mutbl))),
14271425
],
1428-
Applicability::MachineApplicable
1426+
Applicability::MachineApplicable,
14291427
);
14301428

14311429
if let Some((sp, msg, sugg)) = mut_var_suggestion {

0 commit comments

Comments
 (0)