From 88e05778e337904987caaa514bc66619426b23c1 Mon Sep 17 00:00:00 2001 From: Bob Qi Date: Wed, 11 May 2022 16:03:19 +0800 Subject: [PATCH] Fix clippy issue --- helix-term/src/ui/prompt.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/helix-term/src/ui/prompt.rs b/helix-term/src/ui/prompt.rs index 71abff13d..d1f423d1b 100644 --- a/helix-term/src/ui/prompt.rs +++ b/helix-term/src/ui/prompt.rs @@ -16,6 +16,7 @@ use helix_view::{ }; pub type Completion = (RangeFrom, Cow<'static, str>); +type PromptCharHandler = Box; pub struct Prompt { prompt: Cow<'static, str>, @@ -28,7 +29,7 @@ pub struct Prompt { completion_fn: Box Vec>, callback_fn: Box, pub doc_fn: Box Option>>, - next_char_handler: Option>, + next_char_handler: Option, } #[derive(Clone, Copy, PartialEq)]