From 267602328c0c164136244517bbf7176f4c729c67 Mon Sep 17 00:00:00 2001 From: Jan Hrastnik Date: Thu, 15 Oct 2020 12:14:54 +0200 Subject: changed fn to fnmut --- helix-view/src/prompt.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'helix-view') diff --git a/helix-view/src/prompt.rs b/helix-view/src/prompt.rs index 8cfb9fde..b352a386 100644 --- a/helix-view/src/prompt.rs +++ b/helix-view/src/prompt.rs @@ -7,13 +7,13 @@ pub struct Prompt { pub buffer: String, pub cursor_loc: usize, completion_fn: Box Option>>, - callback_fn: Box, + callback_fn: Box, } impl Prompt { pub fn new( completion_fn: impl FnMut(&str) -> Option> + 'static, - callback_fn: impl Fn(&str) + 'static, + callback_fn: impl FnMut(&str) + 'static, ) -> Prompt { Prompt { buffer: String::from(""), -- cgit v1.2.3-70-g09d2