diff options
Diffstat (limited to 'crates/ra_assists/src/assist_ctx.rs')
-rw-r--r-- | crates/ra_assists/src/assist_ctx.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/ra_assists/src/assist_ctx.rs b/crates/ra_assists/src/assist_ctx.rs index 44d6f6808..81f999090 100644 --- a/crates/ra_assists/src/assist_ctx.rs +++ b/crates/ra_assists/src/assist_ctx.rs | |||
@@ -19,6 +19,8 @@ pub(crate) enum Assist { | |||
19 | Resolved { assist: ResolvedAssist }, | 19 | Resolved { assist: ResolvedAssist }, |
20 | } | 20 | } |
21 | 21 | ||
22 | pub(crate) type AssistHandler = fn(AssistCtx) -> Option<Assist>; | ||
23 | |||
22 | /// `AssistCtx` allows to apply an assist or check if it could be applied. | 24 | /// `AssistCtx` allows to apply an assist or check if it could be applied. |
23 | /// | 25 | /// |
24 | /// Assists use a somewhat over-engineered approach, given the current needs. The | 26 | /// Assists use a somewhat over-engineered approach, given the current needs. The |