Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
cuteolaf committed Aug 26, 2023
1 parent 2d0d7be commit a2bb279
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions contracts/identity/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,16 +204,18 @@ mod identity {

// Iterate over all the chains provided and make sure that no
// fields are exceeding the length limits.
chain_ids.clone().into_iter().zip(chains.clone().into_iter()).for_each(
|(chain_id, chain)| {
chain_ids
.clone()
.into_iter()
.zip(chains.into_iter())
.for_each(|(chain_id, chain)| {
assert!(
chain.ensure_rpc_url_size_limit(CHAIN_RPC_URL_LIMIT),
"Chain rpc url is too long"
);
let chain_id = chain_id as ChainId;
chain_info_of.insert(chain_id, &chain);
},
);
});

let caller = Self::env().caller();
Self {
Expand Down

0 comments on commit a2bb279

Please sign in to comment.