diff options
author | Aleksey Kladov <[email protected]> | 2020-03-30 11:28:22 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-03-30 11:28:22 +0100 |
commit | 0cfa9eb44562f3c3b840a87ab4cfecb45e06765d (patch) | |
tree | e9ad832541c32d2afdc0769e4d95634f66ef02ae /crates/ra_assists | |
parent | d2ea3f25b53deac5785485ab5dfe5e6b3b893bf5 (diff) |
Use IntoIter
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()); |