removal of contracts experiemnt - clippy 3
This commit is contained in:
@@ -17,7 +17,7 @@ pub fn vk_share_fixture(owner: &str, index: u64) -> ContractVKShare {
|
||||
node_index: index,
|
||||
owner: Addr::unchecked(owner),
|
||||
epoch_id: index,
|
||||
verified: index % 2 == 0,
|
||||
verified: index.is_multiple_of(2),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -84,6 +84,7 @@ fn querier_handler(query: &WasmQuery) -> QuerierResult {
|
||||
Ok(Cw4QueryMsg::Member { addr, at_height }) => {
|
||||
let weight = GROUP_MEMBERS.lock().unwrap().iter().find_map(|(m, h)| {
|
||||
if m.addr == addr {
|
||||
#[allow(clippy::collapsible_if)]
|
||||
if let Some(height) = at_height {
|
||||
if height != *h {
|
||||
return None;
|
||||
|
||||
Reference in New Issue
Block a user