diff --git a/test-cases/vec-could-be-mapping/vec-could-be-mapping-1/vulnerable-example/src/lib.rs b/test-cases/vec-could-be-mapping/vec-could-be-mapping-1/vulnerable-example/src/lib.rs index 6cdc3e1b..07a87700 100644 --- a/test-cases/vec-could-be-mapping/vec-could-be-mapping-1/vulnerable-example/src/lib.rs +++ b/test-cases/vec-could-be-mapping/vec-could-be-mapping-1/vulnerable-example/src/lib.rs @@ -48,8 +48,7 @@ impl NonPayableTransferredValueContract { .persistent() .get::>(&DataKey::Data) .ok_or(Error::Ununitialized)?; - data - .iter() + data.iter() .find(|(a, _)| *a == key) .map(|(_, b)| b) .ok_or(Error::NotFound)