Skip to content

Commit e89a748

Browse files
committed
style: use &str instead of String
1 parent d3ccef0 commit e89a748

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ffmpeg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ pub fn create_thumbnails(input: &str, output: &str) {
5454
run_command(&command);
5555
}
5656

57-
pub fn create_hls_encoding(input: String, output: String) {
57+
pub fn create_hls_encoding(input: &str, output: &str) {
5858
println!("\npub create_hls_encoding");
5959

6060
if fs::metadata(&output).is_err() {

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ fn main() {
111111

112112
let gen_hls = matches.is_present(Flags::Hls.as_str());
113113
if gen_hls {
114-
create_hls_encoding(out.file_name, path);
114+
create_hls_encoding(&out.file_name, &path);
115115
}
116116

117117
/*

0 commit comments

Comments
 (0)