diff --git a/src/commands/genhtml.rs b/src/commands/genhtml.rs
index 383ca49..8de1de3 100644
--- a/src/commands/genhtml.rs
+++ b/src/commands/genhtml.rs
@@ -186,7 +186,6 @@ pub fn genhtml_command(
let file_path = std::path::PathBuf::from(genhtml_args.dest.as_str()).join("index.html");
let html_index_file = std::fs::File::create(file_path);
-
match html_index_file {
Ok(mut file) => match file.write_all(html_content.as_bytes()) {
Ok(_) => {}
diff --git a/src/commands/process.rs b/src/commands/process.rs
index 1b25031..af1a607 100644
--- a/src/commands/process.rs
+++ b/src/commands/process.rs
@@ -165,7 +165,7 @@ pub fn process_command(
for file in files.iter_mut() {
add_replaygain_tags(file, process_args.force_replaygain)?;
}
-
+
return Ok(());
} else {
let jobs: Arc>> = Arc::new(Mutex::new(files));
@@ -180,7 +180,7 @@ pub fn process_command(
let result = add_replaygain_tags(&job, process_args.force_replaygain);
if let Err(err) = result {
panic!("Error doing replaygain: {}", err)
- }
+ }
} else {
break;
}
diff --git a/src/commands/transcode.rs b/src/commands/transcode.rs
index 23217c2..0d03bba 100644
--- a/src/commands/transcode.rs
+++ b/src/commands/transcode.rs
@@ -24,7 +24,8 @@ pub fn transcode_command(
let transcode_config = transcode_preset_or_config(
transcode_args.transcode_preset.as_ref(),
transcode_args.transcode_config.as_ref(),
- ).expect("transcode config error");
+ )
+ .expect("transcode config error");
println!("Transcoding");
diff --git a/src/utils/transcoder/progress_monitor.rs b/src/utils/transcoder/progress_monitor.rs
index 273d787..c737a4d 100644
--- a/src/utils/transcoder/progress_monitor.rs
+++ b/src/utils/transcoder/progress_monitor.rs
@@ -84,7 +84,8 @@ pub fn progress_monitor(
let mut watcher = RecommendedWatcher::new(
tx,
notify::Config::default().with_poll_interval(Duration::from_millis(100)),
- ).expect("could not watch for ffmpeg log progress status");
+ )
+ .expect("could not watch for ffmpeg log progress status");
watcher
.watch(&file_path, RecursiveMode::NonRecursive)
diff --git a/src/utils/transcoder/transcoder.rs b/src/utils/transcoder/transcoder.rs
index 4a3603c..d1c0ad7 100644
--- a/src/utils/transcoder/transcoder.rs
+++ b/src/utils/transcoder/transcoder.rs
@@ -50,7 +50,7 @@ pub fn transcode(
if let Some(sender) = &progress_sender {
let result = progress_monitor(file.join_path_to(), sender);
-
+
if let Ok(result) = result {
progress_thread = Some(result.1);
progress_file = Some(result.0.clone());