Skip to content

Commit a8b590f

Browse files
Zoran Cvetkovzorancv
authored andcommitted
compiler fix
1 parent 7164866 commit a8b590f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/src/subgraph/context/instance/hosts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ impl<C: Blockchain, T: RuntimeHostBuilder<C>> OffchainHosts<C, T> {
194194
pub fn matches_by_address<'a>(
195195
&'a self,
196196
address: Option<&[u8]>,
197-
) -> Box<dyn Iterator<Item = &T::Host> + Send + 'a> {
197+
) -> Box<dyn Iterator<Item = &'a T::Host> + Send + 'a> {
198198
let Some(address) = address else {
199199
return Box::new(self.by_block.values().flatten().map(|host| host.as_ref()));
200200
};

graph/src/util/lfu_cache.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ impl<K: Clone + Ord + Eq + Hash + Debug + CacheWeight, V: CacheWeight + Default>
179179
})
180180
}
181181

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

0 commit comments

Comments
 (0)