Skip to content

Commit 561b4b1

Browse files
committed
Name assist handlers
1 parent aa64a84 commit 561b4b1

29 files changed

+19
-35
lines changed

crates/ra_assists/src/assist_ctx.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ pub(crate) enum Assist {
1919
Resolved { assist: ResolvedAssist },
2020
}
2121

22+
pub(crate) type AssistHandler = fn(AssistCtx) -> Option<Assist>;
23+
2224
/// `AssistCtx` allows to apply an assist or check if it could be applied.
2325
///
2426
/// Assists use a somewhat over-engineered approach, given the current needs. The

0 commit comments

Comments
 (0)