Skip to content

Commit f0b2e23

Browse files
committed
As ref
1 parent bd5f326 commit f0b2e23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/watch.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ fn core_html(out_dir: &str, slide: &Slide, timestamp: u64, config: &Config) -> S
2828
let image_path = crate::path::image_path(out_dir, slide);
2929
let image_file = image_path.file_name().unwrap();
3030
let image_file = add_timestamp(image_file, timestamp);
31-
let audio_ext = config.audio_format.clone().unwrap();
32-
let audio_path = crate::path::audio_path(out_dir, slide, &audio_ext);
31+
let audio_ext = config.audio_format.as_ref().unwrap();
32+
let audio_path = crate::path::audio_path(out_dir, slide, audio_ext);
3333
let audio_file = audio_path.file_name().unwrap();
3434
let audio_file = add_timestamp(audio_file, timestamp);
3535
format!(

0 commit comments

Comments
 (0)