format code
This commit is contained in:
parent
8f03cf4f17
commit
190f47d6ef
|
@ -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(_) => {}
|
||||
|
|
|
@ -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");
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue