let mut ssr_assists = Vec::with_capacity(2);
let (match_finder, comment_range) = match ide_ssr::ssr_from_comment(db, frange) {
- Some((match_finder, comment_range)) => (match_finder, comment_range),
+ Some(ssr_data) => ssr_data,
None => return ssr_assists,
};
let id = AssistId("ssr", AssistKind::RefactorRewrite);
pub use assist_config::AssistConfig;
-#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
+#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum AssistKind {
// FIXME: does the None variant make sense? Probably not.
None,
/// Unique identifier of the assist, should not be shown to the user
/// directly.
-#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
+#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct AssistId(pub &'static str, pub AssistKind);
/// A way to control how many asssist to resolve during the assist resolution.