diff options
-rw-r--r-- | src/main.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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){ | |||
37 | fn go(s: &mut Cursive, search: &str) { | 37 | fn go(s: &mut Cursive, search: &str) { |
38 | s.pop_layer(); | 38 | s.pop_layer(); |
39 | let mut result = vec![]; | 39 | let mut result = vec![]; |
40 | match get_search_results(search) { | 40 | match get_search_results(&search) { |
41 | Ok(x) => result = x, | 41 | Ok(x) => result = x, |
42 | Err(e) => pop_error(s,handler(e)), | 42 | Err(e) => pop_error(s,handler(e)), |
43 | }; | 43 | }; |
@@ -48,9 +48,9 @@ fn search(s: &mut Cursive){ | |||
48 | on_submit(s, name); | 48 | on_submit(s, name); |
49 | }); | 49 | }); |
50 | s.add_layer(Dialog::around(choose_result) | 50 | s.add_layer(Dialog::around(choose_result) |
51 | .title("Search Results") | 51 | .title("Search Results") |
52 | .button("Cancel", |s| match s.pop_layer() { _ => () }) | 52 | .button("Cancel", |s| match s.pop_layer() { _ => () }) |
53 | .fixed_size(( 45,10 ))); | 53 | .fixed_size(( 45,10 ))); |
54 | } | 54 | } |
55 | 55 | ||
56 | s.add_layer(Dialog::around(EditView::new() | 56 | s.add_layer(Dialog::around(EditView::new() |