diff --git a/src/tools/rust-analyzer/crates/ide/src/inlay_hints/adjustment.rs b/src/tools/rust-analyzer/crates/ide/src/inlay_hints/adjustment.rs index f5960c12568e..7965e1f22377 100644 --- a/src/tools/rust-analyzer/crates/ide/src/inlay_hints/adjustment.rs +++ b/src/tools/rust-analyzer/crates/ide/src/inlay_hints/adjustment.rs @@ -218,7 +218,7 @@ pub(super) fn hints( } if !postfix && needs_inner_parens { - (&mut pre.label).append_str("("); + pre.label.append_str("("); } if needs_outer_parens || (!postfix && needs_inner_parens) { post.label.append_str(")");