diff options
author | Ivan Tham <[email protected]> | 2018-08-08 03:33:41 +0100 |
---|---|---|
committer | Ivan Tham <[email protected]> | 2018-08-08 03:33:41 +0100 |
commit | 25988fc5978f6c7dcdfae2ad36fdfd2bab965ed7 (patch) | |
tree | f2c3ee6dab2a22dc916fbf039b4f21005cfe60e9 | |
parent | f0cb4fafbe4f3f1ecb23b4dd9d7357a269c1317e (diff) |
Format with clippy
-rw-r--r-- | src/main.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 982550f..c6249c4 100644 --- a/src/main.rs +++ b/src/main.rs | |||
@@ -6,7 +6,9 @@ extern crate serde_json; | |||
6 | extern crate lazy_static; | 6 | extern crate lazy_static; |
7 | 7 | ||
8 | use cursive::traits::*; | 8 | use cursive::traits::*; |
9 | use cursive::views::{Dialog, DummyView, EditView, LinearLayout, OnEventView, SelectView, TextView}; | 9 | use cursive::views::{ |
10 | Dialog, DummyView, EditView, LinearLayout, OnEventView, SelectView, TextView, | ||
11 | }; | ||
10 | use cursive::Cursive; | 12 | use cursive::Cursive; |
11 | 13 | ||
12 | use serde_json::Value; | 14 | use serde_json::Value; |
@@ -104,7 +106,8 @@ fn search(s: &mut Cursive) { | |||
104 | Dialog::around(EditView::new().on_submit(go).with_id("search")) | 106 | Dialog::around(EditView::new().on_submit(go).with_id("search")) |
105 | .title("Search for a page") | 107 | .title("Search for a page") |
106 | .button("Go", |s| { | 108 | .button("Go", |s| { |
107 | let search_txt = s.call_on_id("search", |v: &mut EditView| v.get_content()) | 109 | let search_txt = s |
110 | .call_on_id("search", |v: &mut EditView| v.get_content()) | ||
108 | .unwrap(); | 111 | .unwrap(); |
109 | go(s, &search_txt); | 112 | go(s, &search_txt); |
110 | }) | 113 | }) |