diff options
author | Canop <cano.petrole@gmail.com> | 2020-01-20 22:11:38 +0100 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2020-01-20 22:11:38 +0100 |
commit | ec5220711e02c63a4832f984ae788958b3133d18 (patch) | |
tree | 822dacfb3a6c34809291bbd37cac5c958691dc31 /src/browser_states.rs | |
parent | 7ccda47e5044ec2b56b1b6deb4ecdd82eacae9ff (diff) |
minor code fmt changes
Diffstat (limited to 'src/browser_states.rs')
-rw-r--r-- | src/browser_states.rs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/browser_states.rs b/src/browser_states.rs index ff5af32..e93c323 100644 --- a/src/browser_states.rs +++ b/src/browser_states.rs @@ -241,7 +241,9 @@ impl AppState for BrowserState { if invocation.name.is_empty() { Status::new( task, - mad_inline!("Type a verb then *enter* to execute it (*?* for the list of verbs)"), + mad_inline!( + "Type a verb then *enter* to execute it (*?* for the list of verbs)" + ), false, ) .display(&mut w, screen) @@ -446,17 +448,15 @@ impl AppState for BrowserState { warn!("refreshing base tree failed : {:?}", e); } // refresh the filtered tree, if any - Command::from_pattern( - match self.filtered_tree { - Some(ref mut tree) => { - if let Err(e) = tree.refresh(page_height) { - warn!("refreshing filtered tree failed : {:?}", e); - } - &tree.options.pattern + Command::from_pattern(match self.filtered_tree { + Some(ref mut tree) => { + if let Err(e) = tree.refresh(page_height) { + warn!("refreshing filtered tree failed : {:?}", e); } - None => &self.tree.options.pattern, + &tree.options.pattern } - ) + None => &self.tree.options.pattern, + }) } /// draw the flags at the bottom right of the screen |