Skip to content

Commit 405f723

Browse files
committed
refactor: create_output func
1 parent 12bf196 commit 405f723

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/image.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,12 @@ impl Image {
4444
let model = &options.model.clone().unwrap();
4545
let extension = &options.output_ext.to_string().to_lowercase();
4646

47-
let out = format!(
47+
format!(
4848
"{}_{}_x{}.{}",
4949
self.path.file_stem().unwrap().to_string_lossy(),
5050
model.name,
5151
&options.scale,
5252
extension
53-
);
54-
55-
out
53+
)
5654
}
5755
}

0 commit comments

Comments
 (0)