Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
echevrier committed Jun 29, 2023
1 parent 6a7cfc9 commit e6d287e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/rpc_api/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ where

while still_todo > 0 {
let new_count = if still_todo < STORAGE_KEYS_PAGED_MAX_COUNT {
still_todo.clone()
still_todo
} else {
STORAGE_KEYS_PAGED_MAX_COUNT
};
Expand All @@ -309,7 +309,7 @@ where
if keys.len() < STORAGE_KEYS_PAGED_MAX_COUNT as usize {
break
}
still_todo = still_todo - new_count.clone();
still_todo -= new_count;
new_key = keys.last().map(|x| x.to_owned());
}

Expand Down

0 comments on commit e6d287e

Please sign in to comment.