update to cursive 0.14.0

This commit is contained in:
Henrik Friedrichsen
2020-02-02 19:55:26 +01:00
parent e9bf33a3d5
commit 2039878144
6 changed files with 65 additions and 41 deletions

View File

@@ -421,8 +421,8 @@ impl View for SearchView {
}
fn call_on_any<'a>(&mut self, selector: &Selector<'_>, mut callback: AnyCb<'a>) {
self.edit.call_on_any(selector, Box::new(|v| callback(v)));
self.tabs.call_on_any(selector, Box::new(|v| callback(v)));
self.edit.call_on_any(selector, &mut |v| callback(v));
self.tabs.call_on_any(selector, &mut |v| callback(v));
}
fn focus_view(&mut self, selector: &Selector<'_>) -> Result<(), ()> {