From f0cef05059f7f2898690d2a28d6c04ece6ef83fe Mon Sep 17 00:00:00 2001 From: Max Winter Date: Mon, 20 Nov 2023 15:11:55 +0100 Subject: [PATCH] fixed errors Signed-off-by: Max Winter --- src/clean.rs | 2 +- src/import.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/clean.rs b/src/clean.rs index 4bbed32..298cb9c 100644 --- a/src/clean.rs +++ b/src/clean.rs @@ -6,7 +6,7 @@ use clap::Parser; #[clap(about = "This command removes all deployment data from the given device's /output path")] pub struct Clean { ///Path to USB mass storage or SD card where data will be deleted from. - #[clap(short, long, required = True)] + #[clap(short, long, required = true)] pub device: PathBuf, ///Increases the CLI verbosity. diff --git a/src/import.rs b/src/import.rs index 52fd940..0a970ee 100644 --- a/src/import.rs +++ b/src/import.rs @@ -57,7 +57,7 @@ impl Import { // Iterate folders inside output folder. Inside each iterated folder there is // a folder called "audio" which contains the wav files. Merge them into a single // wav file and delete the "audio" folder. - let output_folder = match &self.output { + let output_folder = match self.output.clone() { Some(output_folder) => output_folder, None => std::env::current_dir().unwrap_or_else(|err| { eprintln!("Error: {}", err);