From a2f7aa950027ee47fc33f294d25ea543f8d7c921 Mon Sep 17 00:00:00 2001 From: Birk Tjelmeland Date: Thu, 25 Apr 2019 20:48:48 +0200 Subject: [PATCH] Fix tests so that they remove warning properly --- tests/fuzz_tests.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/fuzz_tests.rs b/tests/fuzz_tests.rs index bef4f08..446d6bd 100644 --- a/tests/fuzz_tests.rs +++ b/tests/fuzz_tests.rs @@ -21,7 +21,7 @@ fn decode_tiff(file: File) -> TiffResult<()> { #[test] fn oor_panic() { test_directory("./tests/fuzz_images/oor_panic", |file| { - decode_tiff(file).ok(); + let _ = decode_tiff(file); true }); } @@ -36,7 +36,7 @@ fn oom_crash() { #[test] fn inf_loop() { test_directory("./tests/fuzz_images/inf_loop", |file| { - decode_tiff(file).ok(); + let _ = decode_tiff(file); true }); } @@ -45,7 +45,7 @@ fn inf_loop() { #[test] fn divide_by_zero() { test_directory("./tests/fuzz_images/divide_by_zero", |file| { - decode_tiff(file).ok(); + let _ = decode_tiff(file); true }); }