Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading