From 25988fc5978f6c7dcdfae2ad36fdfd2bab965ed7 Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Wed, 8 Aug 2018 10:33:41 +0800 Subject: Format with clippy --- src/main.rs | 7 +++++-- 1 file 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; extern crate lazy_static; use cursive::traits::*; -use cursive::views::{Dialog, DummyView, EditView, LinearLayout, OnEventView, SelectView, TextView}; +use cursive::views::{ + Dialog, DummyView, EditView, LinearLayout, OnEventView, SelectView, TextView, +}; use cursive::Cursive; use serde_json::Value; @@ -104,7 +106,8 @@ fn search(s: &mut Cursive) { Dialog::around(EditView::new().on_submit(go).with_id("search")) .title("Search for a page") .button("Go", |s| { - let search_txt = s.call_on_id("search", |v: &mut EditView| v.get_content()) + let search_txt = s + .call_on_id("search", |v: &mut EditView| v.get_content()) .unwrap(); go(s, &search_txt); }) -- cgit v1.2.3