diff options
| author | mo8it <mo8it@proton.me> | 2025-08-22 00:01:03 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2025-08-22 00:01:23 +0200 |
| commit | 6ec2e194ae606ae4409a626ea0ac025229f6f4b1 (patch) | |
| tree | 2064cf8626a245b7bc081429b45b9a5ed794d274 /src/embedded.rs | |
| parent | 295ad2e4bd41147bf10028800a82247c2c0048a4 (diff) | |
Apply Clippy lints
Diffstat (limited to 'src/embedded.rs')
| -rw-r--r-- | src/embedded.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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(()) |
