Apply clippy fix (#3670)

This commit is contained in:
Bogdan-Ștefan Neacşu
2023-07-13 11:40:40 +03:00
committed by GitHub
parent 766261f774
commit 6d79b6f600
+2 -2
View File
@@ -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();
}