From ee739e17fccb80945d1dd69c322cf73f197569f1 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 27 Oct 2019 10:52:18 +0100 Subject: [PATCH] Fix indention Signed-off-by: Matthias Beyer --- bin/domain/imag-calendar/src/lib.rs | 30 ++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/bin/domain/imag-calendar/src/lib.rs b/bin/domain/imag-calendar/src/lib.rs index bb18e06b..a4b0b9bc 100644 --- a/bin/domain/imag-calendar/src/lib.rs +++ b/bin/domain/imag-calendar/src/lib.rs @@ -82,40 +82,40 @@ mod util; pub enum ImagCalendar {} impl ImagApplication for ImagCalendar { fn run(rt: Runtime) -> Result<()> { - if let Some(name) = rt.cli().subcommand_name() { + if let Some(name) = rt.cli().subcommand_name() { debug!("Call {}", name); match name { - "import" => import(&rt), - "list" => list(&rt), - "show" => show(&rt), - other => { + "import" => import(&rt), + "list" => list(&rt), + "show" => show(&rt), + other => { warn!("Right now, only the 'import' command is available"); debug!("Unknown command"); let _ = rt.handle_unknown_subcommand("imag-calendar", other, rt.cli()) - .map_err_trace_exit_unwrap() - .code() - .map(::std::process::exit); - }, + .map_err_trace_exit_unwrap() + .code() + .map(::std::process::exit); + }, } - } + } - Ok(()) + Ok(()) } fn build_cli<'a>(app: App<'a, 'a>) -> App<'a, 'a> { - ui::build_ui(app) + ui::build_ui(app) } fn name() -> &'static str { - env!("CARGO_PKG_NAME") + env!("CARGO_PKG_NAME") } fn description() -> &'static str { - "Calendar management tool" + "Calendar management tool" } fn version() -> &'static str { - env!("CARGO_PKG_VERSION") + env!("CARGO_PKG_VERSION") } }