format code

This commit is contained in:
chaos 2023-08-31 23:52:56 +01:00
parent 8f03cf4f17
commit 190f47d6ef
No known key found for this signature in database
5 changed files with 7 additions and 6 deletions

View file

@ -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(_) => {}

View file

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

View file

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