File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ fn run_command(command: &str) {
22
22
23
23
// fn create_preview_gif() {}
24
24
25
- pub fn create_preview_image ( input : String , output : String ) {
25
+ pub fn create_preview_image ( input : & str , output : & str ) {
26
26
let path = format ! ( "{}/lg" , output) ;
27
27
if fs:: metadata ( & path) . is_err ( ) {
28
28
fs:: create_dir_all ( & path) . unwrap ( ) ;
@@ -36,7 +36,7 @@ pub fn create_preview_image(input: String, output: String) {
36
36
run_command ( & command) ;
37
37
}
38
38
39
- pub fn create_thumbnails ( input : String , output : String ) {
39
+ pub fn create_thumbnails ( input : & str , output : & str ) {
40
40
println ! ( "\n create_thumbnails" ) ;
41
41
42
42
let thumbs_path = format ! ( "{}/thumbs" , output) ;
Original file line number Diff line number Diff line change @@ -101,12 +101,12 @@ fn main() {
101
101
102
102
let gen_thumbs = matches. is_present ( Flags :: Thumbnails . as_str ( ) ) ;
103
103
if gen_thumbs {
104
- create_thumbnails ( out. file_name . clone ( ) , path. clone ( ) ) ;
104
+ create_thumbnails ( & out. file_name , & path) ;
105
105
}
106
106
107
107
let gen_preview_image = matches. is_present ( Flags :: PreviewImage . as_str ( ) ) ;
108
108
if gen_preview_image {
109
- create_preview_image ( out. file_name . clone ( ) , path. clone ( ) ) ;
109
+ create_preview_image ( & out. file_name , & path) ;
110
110
}
111
111
112
112
let gen_hls = matches. is_present ( Flags :: Hls . as_str ( ) ) ;
You can’t perform that action at this time.
0 commit comments