diff options
author | kjeremy <[email protected]> | 2020-07-02 22:48:35 +0100 |
---|---|---|
committer | kjeremy <[email protected]> | 2020-07-02 22:48:35 +0100 |
commit | 36cc81ac71e4246bf58a3758735cc68f7adb5e0f (patch) | |
tree | 9d14ddf58d873049fa5efc79dbdb83ed165aec8b /crates/ra_assists/src/handlers/replace_unwrap_with_match.rs | |
parent | 1d58e168246e1ca64f3ce3936e90077922b82d05 (diff) |
Move AssistKind into AssistId
Diffstat (limited to 'crates/ra_assists/src/handlers/replace_unwrap_with_match.rs')
-rw-r--r-- | crates/ra_assists/src/handlers/replace_unwrap_with_match.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/ra_assists/src/handlers/replace_unwrap_with_match.rs b/crates/ra_assists/src/handlers/replace_unwrap_with_match.rs index 5f9705be1..e5a4bb23c 100644 --- a/crates/ra_assists/src/handlers/replace_unwrap_with_match.rs +++ b/crates/ra_assists/src/handlers/replace_unwrap_with_match.rs | |||
@@ -47,8 +47,7 @@ pub(crate) fn replace_unwrap_with_match(acc: &mut Assists, ctx: &AssistContext) | |||
47 | let happy_variant = TryEnum::from_ty(&ctx.sema, &ty)?.happy_case(); | 47 | let happy_variant = TryEnum::from_ty(&ctx.sema, &ty)?.happy_case(); |
48 | let target = method_call.syntax().text_range(); | 48 | let target = method_call.syntax().text_range(); |
49 | acc.add( | 49 | acc.add( |
50 | AssistId("replace_unwrap_with_match"), | 50 | AssistId("replace_unwrap_with_match", AssistKind::RefactorRewrite), |
51 | AssistKind::RefactorRewrite, | ||
52 | "Replace unwrap with match", | 51 | "Replace unwrap with match", |
53 | target, | 52 | target, |
54 | |builder| { | 53 | |builder| { |