Skip to content

Commit

Permalink
compiler fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zorancv committed Dec 4, 2024
1 parent 7164866 commit a8b590f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/subgraph/context/instance/hosts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ impl<C: Blockchain, T: RuntimeHostBuilder<C>> OffchainHosts<C, T> {
pub fn matches_by_address<'a>(
&'a self,
address: Option<&[u8]>,
) -> Box<dyn Iterator<Item = &T::Host> + Send + 'a> {
) -> Box<dyn Iterator<Item = &'a T::Host> + Send + 'a> {
let Some(address) = address else {
return Box::new(self.by_block.values().flatten().map(|host| host.as_ref()));
};
Expand Down
2 changes: 1 addition & 1 deletion graph/src/util/lfu_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ impl<K: Clone + Ord + Eq + Hash + Debug + CacheWeight, V: CacheWeight + Default>
})
}

pub fn iter<'a>(&'a self) -> impl Iterator<Item = (&K, &V)> {
pub fn iter<'a>(&'a self) -> impl Iterator<Item = (&'a K, &'a V)> {
self.queue
.iter()
.map(|entry| (&entry.0.key, &entry.0.value))
Expand Down

0 comments on commit a8b590f

Please sign in to comment.