aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_assists/src/handlers/add_impl.rs
diff options
context:
space:
mode:
authorkjeremy <[email protected]>2020-07-02 22:48:35 +0100
committerkjeremy <[email protected]>2020-07-02 22:48:35 +0100
commit36cc81ac71e4246bf58a3758735cc68f7adb5e0f (patch)
tree9d14ddf58d873049fa5efc79dbdb83ed165aec8b /crates/ra_assists/src/handlers/add_impl.rs
parent1d58e168246e1ca64f3ce3936e90077922b82d05 (diff)
Move AssistKind into AssistId
Diffstat (limited to 'crates/ra_assists/src/handlers/add_impl.rs')
-rw-r--r--crates/ra_assists/src/handlers/add_impl.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/ra_assists/src/handlers/add_impl.rs b/crates/ra_assists/src/handlers/add_impl.rs
index 405e3c568..2f603ef9c 100644
--- a/crates/ra_assists/src/handlers/add_impl.rs
+++ b/crates/ra_assists/src/handlers/add_impl.rs
@@ -27,8 +27,7 @@ pub(crate) fn add_impl(acc: &mut Assists, ctx: &AssistContext) -> Option<()> {
27 let name = nominal.name()?; 27 let name = nominal.name()?;
28 let target = nominal.syntax().text_range(); 28 let target = nominal.syntax().text_range();
29 acc.add( 29 acc.add(
30 AssistId("add_impl"), 30 AssistId("add_impl", AssistKind::Refactor),
31 AssistKind::Refactor,
32 format!("Implement {}", name.text().as_str()), 31 format!("Implement {}", name.text().as_str()),
33 target, 32 target,
34 |edit| { 33 |edit| {