Skip to content

Commit 1451434

Browse files
committed
remove redundant clone_for_update in assign as well
1 parent f78b75d commit 1451434

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

crates/ide-assists/src/handlers/unwrap_block.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ fn wrap_let(assign: &ast::LetStmt, replacement: ast::BlockExpr) -> ast::BlockExp
104104
let try_wrap_assign = || {
105105
let initializer = assign.initializer()?.syntax().syntax_element();
106106
let (mut edit, replacement) = SyntaxEditor::with_ast_node(&replacement);
107-
let assign = assign.clone_for_update();
108107
let tail_expr = replacement.tail_expr()?;
109108
let before =
110109
assign.syntax().children_with_tokens().take_while(|it| *it != initializer).collect();

0 commit comments

Comments
 (0)