Skip to content

Commit 9e1dfdf

Browse files
committed
fix: clippy warnings
Signed-off-by: William Hankins <[email protected]>
1 parent b0fbb78 commit 9e1dfdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/historical_accounts_state/src/immutable_historical_account_store.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ impl ImmutableHistoricalAccountStore {
8585

8686
// Persist rewards
8787
if config.store_rewards_history {
88-
let rewards = entry.reward_history.as_ref().map(|v| v.clone()).unwrap_or_default();
88+
let rewards = entry.reward_history.clone().unwrap_or_default();
8989
batch.insert(&self.rewards_history, epoch_key, to_vec(&rewards)?);
9090
}
9191

0 commit comments

Comments
 (0)