From 861234a0140a7c00039ca0fe9dffcfafb56c4f94 Mon Sep 17 00:00:00 2001 From: Michal Filka Date: Wed, 15 Nov 2023 11:35:08 +0100 Subject: [PATCH] Formatting --- rust/agama-cli/src/logs.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/rust/agama-cli/src/logs.rs b/rust/agama-cli/src/logs.rs index 3e89bcc483..40068800af 100644 --- a/rust/agama-cli/src/logs.rs +++ b/rust/agama-cli/src/logs.rs @@ -31,7 +31,10 @@ pub enum LogsCommands { /// Main entry point called from agama CLI main loop pub async fn run(subcommand: LogsCommands) -> anyhow::Result<()> { match subcommand { - LogsCommands::Store { verbose, destination } => { + LogsCommands::Store { + verbose, + destination + } => { // feed internal options structure by what was received from user // for now we always use / add defaults if any let destination = parse_destination(destination)?; @@ -77,11 +80,11 @@ fn parse_destination(destination: Option) -> Result } else if path.parent().is_some() { // validate if parent directory realy exists if !path.parent().unwrap().is_dir() { - return Err(err) + return Err(err); } // whatever else -> input error } else { - return Err(err) + return Err(err); } Ok(buffer)