Skip to content

Commit

Permalink
style: remove needless borrow
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkurilla committed Nov 15, 2024
1 parent 34dd288 commit c627c1a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pub(crate) fn add_braces(acc: &mut Assists, ctx: &AssistContext<'_>) -> Option<(
expr.syntax().text_range(),
|builder| {
let make = SyntaxFactory::new();
let mut editor = builder.make_editor(&expr.syntax());
let mut editor = builder.make_editor(expr.syntax());

let block_expr = make.block_expr(None, Some(expr.clone()));
block_expr.indent(expr.indent_level());
Expand Down

0 comments on commit c627c1a

Please sign in to comment.