diff options
author | NerdyPepper <[email protected]> | 2018-07-18 11:07:31 +0100 |
---|---|---|
committer | NerdyPepper <[email protected]> | 2018-07-18 11:07:31 +0100 |
commit | 4c4aa1888a1c2a1d0b39cd25a9c7748466873abf (patch) | |
tree | c1a03ac9842ed5f768d30d52f69b21cd00f485be | |
parent | 3db4b09747348a895c9fe29cd350fa11dd6014c5 (diff) |
Fix reference
-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() |