diff options
author | Aleksey Kladov <[email protected]> | 2020-07-03 18:14:42 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-07-03 18:32:18 +0100 |
commit | d09f6923009943cee1b24571c2905c3c0bfb49c7 (patch) | |
tree | 3e2e02e862af35b6e0e6f859eb22c1b32938d958 /crates/ra_assists/src/handlers/generate_new.rs | |
parent | 66b6a433c6243b8be72bbd04a40d0a38cedb11b4 (diff) |
Add AssistKind::Generate
Diffstat (limited to 'crates/ra_assists/src/handlers/generate_new.rs')
-rw-r--r-- | crates/ra_assists/src/handlers/generate_new.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_assists/src/handlers/generate_new.rs b/crates/ra_assists/src/handlers/generate_new.rs index b37bba761..e27def1d8 100644 --- a/crates/ra_assists/src/handlers/generate_new.rs +++ b/crates/ra_assists/src/handlers/generate_new.rs | |||
@@ -42,7 +42,7 @@ pub(crate) fn generate_new(acc: &mut Assists, ctx: &AssistContext) -> Option<()> | |||
42 | let impl_def = find_struct_impl(&ctx, &strukt)?; | 42 | let impl_def = find_struct_impl(&ctx, &strukt)?; |
43 | 43 | ||
44 | let target = strukt.syntax().text_range(); | 44 | let target = strukt.syntax().text_range(); |
45 | acc.add(AssistId("generate_new", AssistKind::None), "Generate `new`", target, |builder| { | 45 | acc.add(AssistId("generate_new", AssistKind::Generate), "Generate `new`", target, |builder| { |
46 | let mut buf = String::with_capacity(512); | 46 | let mut buf = String::with_capacity(512); |
47 | 47 | ||
48 | if impl_def.is_some() { | 48 | if impl_def.is_some() { |