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 file_path = std::path::PathBuf::from(genhtml_args.dest.as_str()).join("index.html");
|
||||||
let html_index_file = std::fs::File::create(file_path);
|
let html_index_file = std::fs::File::create(file_path);
|
||||||
|
|
||||||
|
|
||||||
match html_index_file {
|
match html_index_file {
|
||||||
Ok(mut file) => match file.write_all(html_content.as_bytes()) {
|
Ok(mut file) => match file.write_all(html_content.as_bytes()) {
|
||||||
Ok(_) => {}
|
Ok(_) => {}
|
||||||
|
|
|
@ -24,7 +24,8 @@ pub fn transcode_command(
|
||||||
let transcode_config = transcode_preset_or_config(
|
let transcode_config = transcode_preset_or_config(
|
||||||
transcode_args.transcode_preset.as_ref(),
|
transcode_args.transcode_preset.as_ref(),
|
||||||
transcode_args.transcode_config.as_ref(),
|
transcode_args.transcode_config.as_ref(),
|
||||||
).expect("transcode config error");
|
)
|
||||||
|
.expect("transcode config error");
|
||||||
|
|
||||||
println!("Transcoding");
|
println!("Transcoding");
|
||||||
|
|
||||||
|
|
|
@ -84,7 +84,8 @@ pub fn progress_monitor(
|
||||||
let mut watcher = RecommendedWatcher::new(
|
let mut watcher = RecommendedWatcher::new(
|
||||||
tx,
|
tx,
|
||||||
notify::Config::default().with_poll_interval(Duration::from_millis(100)),
|
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
|
watcher
|
||||||
.watch(&file_path, RecursiveMode::NonRecursive)
|
.watch(&file_path, RecursiveMode::NonRecursive)
|
||||||
|
|
Loading…
Reference in a new issue