From 6ec2e194ae606ae4409a626ea0ac025229f6f4b1 Mon Sep 17 00:00:00 2001 From: mo8it Date: Fri, 22 Aug 2025 00:01:03 +0200 Subject: Apply Clippy lints --- src/embedded.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/embedded.rs') diff --git a/src/embedded.rs b/src/embedded.rs index 88c1fb0..61a5f58 100644 --- a/src/embedded.rs +++ b/src/embedded.rs @@ -20,10 +20,10 @@ struct ExerciseFiles { } fn create_dir_if_not_exists(path: &str) -> Result<()> { - if let Err(e) = create_dir(path) { - if e.kind() != io::ErrorKind::AlreadyExists { - return Err(Error::from(e).context(format!("Failed to create the directory {path}"))); - } + if let Err(e) = create_dir(path) + && e.kind() != io::ErrorKind::AlreadyExists + { + return Err(Error::from(e).context(format!("Failed to create the directory {path}"))); } Ok(()) -- cgit v1.2.3