Skip to content

Commit

Permalink
fixed errors
Browse files Browse the repository at this point in the history
Signed-off-by: Max Winter <[email protected]>
  • Loading branch information
mxwt00 committed Nov 20, 2023
1 parent 428490e commit f0cef05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/clean.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/import.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f0cef05

Please sign in to comment.