Skip to content

Commit

Permalink
Merge pull request #749 from ezekiiel/zeke/into-iter
Browse files Browse the repository at this point in the history
Use into_iter() instead of iter().cloned().
  • Loading branch information
ueco-jb authored Jul 8, 2022
2 parents 9d0f06d + 10ec43f commit b816d7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/controllers/src/claim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ impl<'a> Claims<'a> {
let mut to_send = Uint128::zero();
self.0.update(storage, addr, |claim| -> StdResult<_> {
let (_send, waiting): (Vec<_>, _) =
claim.unwrap_or_default().iter().cloned().partition(|c| {
claim.unwrap_or_default().into_iter().partition(|c| {
// if mature and we can pay fully, then include in _send
if c.release_at.is_expired(block) {
if let Some(limit) = cap {
Expand Down

0 comments on commit b816d7d

Please sign in to comment.