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/apply_demorgan.rs | |
parent | 1d58e168246e1ca64f3ce3936e90077922b82d05 (diff) |
Move AssistKind into AssistId
Diffstat (limited to 'crates/ra_assists/src/handlers/apply_demorgan.rs')
-rw-r--r-- | crates/ra_assists/src/handlers/apply_demorgan.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/ra_assists/src/handlers/apply_demorgan.rs b/crates/ra_assists/src/handlers/apply_demorgan.rs index a1fd6e112..de701f8b8 100644 --- a/crates/ra_assists/src/handlers/apply_demorgan.rs +++ b/crates/ra_assists/src/handlers/apply_demorgan.rs | |||
@@ -40,8 +40,7 @@ pub(crate) fn apply_demorgan(acc: &mut Assists, ctx: &AssistContext) -> Option<( | |||
40 | let not_rhs = invert_boolean_expression(rhs); | 40 | let not_rhs = invert_boolean_expression(rhs); |
41 | 41 | ||
42 | acc.add( | 42 | acc.add( |
43 | AssistId("apply_demorgan"), | 43 | AssistId("apply_demorgan", AssistKind::RefactorRewrite), |
44 | AssistKind::RefactorRewrite, | ||
45 | "Apply De Morgan's law", | 44 | "Apply De Morgan's law", |
46 | op_range, | 45 | op_range, |
47 | |edit| { | 46 | |edit| { |