diff options
Diffstat (limited to 'crates/ra_assists')
-rw-r--r-- | crates/ra_assists/src/handlers/fill_match_arms.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/ra_assists/src/handlers/fill_match_arms.rs b/crates/ra_assists/src/handlers/fill_match_arms.rs index 5f279d25a..41bb97928 100644 --- a/crates/ra_assists/src/handlers/fill_match_arms.rs +++ b/crates/ra_assists/src/handlers/fill_match_arms.rs | |||
@@ -97,8 +97,7 @@ pub(crate) fn fill_match_arms(ctx: AssistCtx) -> Option<Assist> { | |||
97 | } | 97 | } |
98 | 98 | ||
99 | ctx.add_assist(AssistId("fill_match_arms"), "Fill match arms", |edit| { | 99 | ctx.add_assist(AssistId("fill_match_arms"), "Fill match arms", |edit| { |
100 | let new_arm_list = | 100 | let new_arm_list = match_arm_list.remove_placeholder().append_arms(missing_arms); |
101 | match_arm_list.remove_placeholder().append_arms(missing_arms.into_iter()); | ||
102 | 101 | ||
103 | edit.target(match_expr.syntax().text_range()); | 102 | edit.target(match_expr.syntax().text_range()); |
104 | edit.set_cursor(expr.syntax().text_range().start()); | 103 | edit.set_cursor(expr.syntax().text_range().start()); |