From 5c9c0d3ae2735b4b32a44742bac800ca616fdde8 Mon Sep 17 00:00:00 2001 From: Andrea Pretto Date: Mon, 11 Feb 2019 18:07:21 +0100 Subject: ra_assists: assist "providers" can produce multiple assists --- crates/ra_assists/src/fill_match_arms.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'crates/ra_assists/src/fill_match_arms.rs') diff --git a/crates/ra_assists/src/fill_match_arms.rs b/crates/ra_assists/src/fill_match_arms.rs index 69b535a27..d8e40b4b7 100644 --- a/crates/ra_assists/src/fill_match_arms.rs +++ b/crates/ra_assists/src/fill_match_arms.rs @@ -8,7 +8,7 @@ use ra_syntax::ast::{self, AstNode}; use crate::{AssistCtx, Assist}; -pub(crate) fn fill_match_arms(ctx: AssistCtx) -> Option { +pub(crate) fn fill_match_arms(mut ctx: AssistCtx) -> Option { let match_expr = ctx.node_at_offset::()?; // We already have some match arms, so we don't provide any assists. @@ -33,7 +33,7 @@ pub(crate) fn fill_match_arms(ctx: AssistCtx) -> Option) -> Option