code formatting + minor refactorings

This commit is contained in:
Henrik Friedrichsen
2019-03-28 05:42:47 +01:00
parent 486bc7617e
commit d7848ec333
8 changed files with 85 additions and 60 deletions

View File

@@ -47,7 +47,7 @@ impl SearchView {
edit: searchfield,
list,
edit_focused: true,
spotify
spotify,
}
}
@@ -118,12 +118,12 @@ impl View for SearchView {
}
}
impl ViewExt for SearchView {
fn on_command(&mut self,
fn on_command(
&mut self,
s: &mut Cursive,
cmd: &String,
args: &[String]
cmd: &str,
args: &[String],
) -> Result<CommandResult, String> {
if cmd == "search" && !args.is_empty() {
self.run_search(args.join(" "));