summaryrefslogtreecommitdiff
path: root/tests/src
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/tests.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/src/tests.rs b/tests/src/tests.rs
index d801209e..eb2a5f06 100644
--- a/tests/src/tests.rs
+++ b/tests/src/tests.rs
@@ -500,7 +500,7 @@ fn get_flag_metadata(line: &str, key: &str) -> Option<bool> {
fn update_image(png_path: &Path, ref_path: &Path) {
oxipng::optimize(
&InFile::Path(png_path.to_owned()),
- &OutFile::Path(Some(ref_path.to_owned())),
+ &OutFile::from_path(ref_path.to_owned()),
&Options::max_compression(),
)
.unwrap();