diff options
author | Kirill Bulatov <[email protected]> | 2021-05-03 16:44:58 +0100 |
---|---|---|
committer | Kirill Bulatov <[email protected]> | 2021-05-03 16:45:30 +0100 |
commit | 53a73de3d10e20a13153c94e050a8ad9230169eb (patch) | |
tree | c81670ec01d16b50c623904ef8a0275a33f3f220 /crates | |
parent | 8089a227f4b40872cf8491cfb9e065a8b05705a2 (diff) |
Small fixes
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ide/src/ssr.rs | 2 | ||||
-rw-r--r-- | crates/ide_assists/src/lib.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/crates/ide/src/ssr.rs b/crates/ide/src/ssr.rs index 97ad66d35..57ec80261 100644 --- a/crates/ide/src/ssr.rs +++ b/crates/ide/src/ssr.rs | |||
@@ -13,7 +13,7 @@ pub(crate) fn ssr_assists( | |||
13 | let mut ssr_assists = Vec::with_capacity(2); | 13 | let mut ssr_assists = Vec::with_capacity(2); |
14 | 14 | ||
15 | let (match_finder, comment_range) = match ide_ssr::ssr_from_comment(db, frange) { | 15 | let (match_finder, comment_range) = match ide_ssr::ssr_from_comment(db, frange) { |
16 | Some((match_finder, comment_range)) => (match_finder, comment_range), | 16 | Some(ssr_data) => ssr_data, |
17 | None => return ssr_assists, | 17 | None => return ssr_assists, |
18 | }; | 18 | }; |
19 | let id = AssistId("ssr", AssistKind::RefactorRewrite); | 19 | let id = AssistId("ssr", AssistKind::RefactorRewrite); |
diff --git a/crates/ide_assists/src/lib.rs b/crates/ide_assists/src/lib.rs index 5a0047f03..723531078 100644 --- a/crates/ide_assists/src/lib.rs +++ b/crates/ide_assists/src/lib.rs | |||
@@ -28,7 +28,7 @@ pub(crate) use crate::assist_context::{AssistContext, Assists}; | |||
28 | 28 | ||
29 | pub use assist_config::AssistConfig; | 29 | pub use assist_config::AssistConfig; |
30 | 30 | ||
31 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] | 31 | #[derive(Debug, Clone, Copy, PartialEq, Eq)] |
32 | pub enum AssistKind { | 32 | pub enum AssistKind { |
33 | // FIXME: does the None variant make sense? Probably not. | 33 | // FIXME: does the None variant make sense? Probably not. |
34 | None, | 34 | None, |
@@ -91,7 +91,7 @@ impl FromStr for AssistKind { | |||
91 | 91 | ||
92 | /// Unique identifier of the assist, should not be shown to the user | 92 | /// Unique identifier of the assist, should not be shown to the user |
93 | /// directly. | 93 | /// directly. |
94 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] | 94 | #[derive(Debug, Clone, Copy, PartialEq, Eq)] |
95 | pub struct AssistId(pub &'static str, pub AssistKind); | 95 | pub struct AssistId(pub &'static str, pub AssistKind); |
96 | 96 | ||
97 | /// A way to control how many asssist to resolve during the assist resolution. | 97 | /// A way to control how many asssist to resolve during the assist resolution. |