From 4c4aa1888a1c2a1d0b39cd25a9c7748466873abf Mon Sep 17 00:00:00 2001 From: NerdyPepper Date: Wed, 18 Jul 2018 15:37:31 +0530 Subject: Fix reference --- src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 1688ddc..89f5dcd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -37,7 +37,7 @@ fn search(s: &mut Cursive){ fn go(s: &mut Cursive, search: &str) { s.pop_layer(); let mut result = vec![]; - match get_search_results(search) { + match get_search_results(&search) { Ok(x) => result = x, Err(e) => pop_error(s,handler(e)), }; @@ -48,9 +48,9 @@ fn search(s: &mut Cursive){ on_submit(s, name); }); s.add_layer(Dialog::around(choose_result) - .title("Search Results") - .button("Cancel", |s| match s.pop_layer() { _ => () }) - .fixed_size(( 45,10 ))); + .title("Search Results") + .button("Cancel", |s| match s.pop_layer() { _ => () }) + .fixed_size(( 45,10 ))); } s.add_layer(Dialog::around(EditView::new() -- cgit v1.2.3