From a55b319f75b944fda7f5776b91b9121f00747f03 Mon Sep 17 00:00:00 2001 From: Jose Garcia Crosta Date: Thu, 14 Mar 2024 15:04:26 -0300 Subject: [PATCH] Edit second vulnerable test-case --- .../unused-return-enum-2/vulnerable-example/src/lib.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/test-cases/unused-return-enum/unused-return-enum-2/vulnerable-example/src/lib.rs b/test-cases/unused-return-enum/unused-return-enum-2/vulnerable-example/src/lib.rs index 42f91c2f..e4debe03 100644 --- a/test-cases/unused-return-enum/unused-return-enum-2/vulnerable-example/src/lib.rs +++ b/test-cases/unused-return-enum/unused-return-enum-2/vulnerable-example/src/lib.rs @@ -20,10 +20,6 @@ impl UnusedReturnEnum { let absolute_difference = balance1.abs_diff(balance2); let sum = balance1 + balance2; - let _ignore = 100u128 - .checked_mul(absolute_difference / sum) - .ok_or(Error::Overflow)?; - match 100u128.checked_mul(absolute_difference / sum) { Some(result) => result, None => panic!("Overflow"),