[No-auto] bin/domain/notes: Fix Clippy warnings

Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
flip1995 2019-08-27 10:33:23 +02:00 committed by Matthias Beyer
parent 3036d87402
commit 4529ebf216

View file

@ -74,9 +74,7 @@ fn main() {
"Note taking helper", "Note taking helper",
build_ui); build_ui);
rt.cli() if let Some(name) = rt.cli().subcommand_name() {
.subcommand_name()
.map(|name| {
debug!("Call: {}", name); debug!("Call: {}", name);
match name { match name {
"create" => create(&rt), "create" => create(&rt),
@ -91,7 +89,7 @@ fn main() {
.map(::std::process::exit); .map(::std::process::exit);
}, },
}; };
}); }
} }
fn name_from_cli(rt: &Runtime, subcmd: &str) -> String { fn name_from_cli(rt: &Runtime, subcmd: &str) -> String {