From 6d79b6f6005dbc9c5d339aeb3ca08bcd12cb1624 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bogdan-=C8=98tefan=20Neac=C5=9Fu?= Date: Thu, 13 Jul 2023 11:40:40 +0300 Subject: [PATCH] Apply clippy fix (#3670) --- contracts/multisig/cw4-group/src/contract.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/multisig/cw4-group/src/contract.rs b/contracts/multisig/cw4-group/src/contract.rs index 543388c6fa..c141210507 100644 --- a/contracts/multisig/cw4-group/src/contract.rs +++ b/contracts/multisig/cw4-group/src/contract.rs @@ -288,7 +288,7 @@ mod tests { // this is only valid if we are not doing a historical query if height.is_none() { // compute expected metrics - let weights = vec![user1_weight, user2_weight, user3_weight]; + let weights = [user1_weight, user2_weight, user3_weight]; let sum: u64 = weights.iter().map(|x| x.unwrap_or_default()).sum(); let count = weights.iter().filter(|x| x.is_some()).count(); @@ -495,7 +495,7 @@ mod tests { let add_msg2 = ExecuteMsg::AddHook { addr: contract2.clone(), }; - for msg in vec![add_msg, add_msg2] { + for msg in [add_msg, add_msg2] { let _ = execute(deps.as_mut(), mock_env(), admin_info.clone(), msg).unwrap(); }