aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNerdyPepper <[email protected]>2018-07-18 11:07:31 +0100
committerNerdyPepper <[email protected]>2018-07-18 11:07:31 +0100
commit4c4aa1888a1c2a1d0b39cd25a9c7748466873abf (patch)
treec1a03ac9842ed5f768d30d52f69b21cd00f485be
parent3db4b09747348a895c9fe29cd350fa11dd6014c5 (diff)
Fix reference
-rw-r--r--src/main.rs8
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()