diff options
author | Jan Hrastnik | 2020-10-15 10:14:54 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2020-10-16 03:02:05 +0000 |
commit | 267602328c0c164136244517bbf7176f4c729c67 (patch) | |
tree | 1bb328e84d6639717ee47fe3a98ada4f21241f38 /helix-view/src/prompt.rs | |
parent | fa55b1e51c2310cf73689da37c5c57441d7e89c3 (diff) |
changed fn to fnmut
Diffstat (limited to 'helix-view/src/prompt.rs')
-rw-r--r-- | helix-view/src/prompt.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<dyn FnMut(&str) -> Option<Vec<&str>>>, - callback_fn: Box<dyn Fn(&str)>, + callback_fn: Box<dyn FnMut(&str)>, } impl Prompt { pub fn new( completion_fn: impl FnMut(&str) -> Option<Vec<&str>> + 'static, - callback_fn: impl Fn(&str) + 'static, + callback_fn: impl FnMut(&str) + 'static, ) -> Prompt { Prompt { buffer: String::from(""), |