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);