diff --git a/core/store/src/trie/state_snapshot.rs b/core/store/src/trie/state_snapshot.rs index f26b3cac3c8..3030cf071ef 100644 --- a/core/store/src/trie/state_snapshot.rs +++ b/core/store/src/trie/state_snapshot.rs @@ -344,7 +344,7 @@ impl ShardTries { /// we don't deal with multiple snapshots here because we will deal with it whenever a new snapshot is created and saved to file system pub fn maybe_open_state_snapshot( &self, - get_shard_uids_fn: impl Fn(CryptoHash) -> Result, EpochError>, + get_shard_uids_fn: impl FnOnce(CryptoHash) -> Result, EpochError>, ) -> Result<(), anyhow::Error> { let _span = tracing::info_span!(target: "state_snapshot", "maybe_open_state_snapshot").entered();