Skip to content

Commit

Permalink
Remove unnecessary & from AsRef params (#22523)
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksprumo authored Jan 15, 2022
1 parent f34ade7 commit 6edeed8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions runtime/src/status_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ impl<T: Serialize + Clone> StatusCache<T> {
/// to search all blockhashes.
pub fn get_status_any_blockhash<K: AsRef<[u8]>>(
&self,
key: &K,
key: K,
ancestors: &Ancestors,
) -> Option<(Slot, T)> {
let mut keys = vec![];
Expand All @@ -167,7 +167,7 @@ impl<T: Serialize + Clone> StatusCache<T> {

for blockhash in keys.iter() {
trace!("get_status_any_blockhash: trying {}", blockhash);
let status = self.get_status(key, blockhash, ancestors);
let status = self.get_status(&key, blockhash, ancestors);
if status.is_some() {
return status;
}
Expand All @@ -190,7 +190,7 @@ impl<T: Serialize + Clone> StatusCache<T> {
pub fn insert<K: AsRef<[u8]>>(
&mut self,
transaction_blockhash: &Hash,
key: &K,
key: K,
slot: Slot,
res: T,
) {
Expand Down

0 comments on commit 6edeed8

Please sign in to comment.