Remove unnecessary & from AsRef params (#22523)

This commit is contained in:
Brooks Prumo 2022-01-14 22:51:05 -06:00 committed by GitHub
parent f34ade7610
commit 6edeed888d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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![];
@ -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;
}
@ -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,
) {