From e784ae09f54a741efbe445c81fd39e03e41c2f00 Mon Sep 17 00:00:00 2001 From: Zoran Cvetkov Date: Wed, 4 Dec 2024 14:33:15 +0200 Subject: [PATCH] compiler fix --- core/src/subgraph/context/instance/hosts.rs | 2 +- graph/src/util/lfu_cache.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/subgraph/context/instance/hosts.rs b/core/src/subgraph/context/instance/hosts.rs index 73701fadb29..2ec1e4578f0 100644 --- a/core/src/subgraph/context/instance/hosts.rs +++ b/core/src/subgraph/context/instance/hosts.rs @@ -194,7 +194,7 @@ impl> OffchainHosts { pub fn matches_by_address<'a>( &'a self, address: Option<&[u8]>, - ) -> Box + Send + 'a> { + ) -> Box + Send + 'a> { let Some(address) = address else { return Box::new(self.by_block.values().flatten().map(|host| host.as_ref())); }; diff --git a/graph/src/util/lfu_cache.rs b/graph/src/util/lfu_cache.rs index dbd66bee302..06ec6a475db 100644 --- a/graph/src/util/lfu_cache.rs +++ b/graph/src/util/lfu_cache.rs @@ -179,7 +179,7 @@ impl }) } - pub fn iter<'a>(&'a self) -> impl Iterator { + pub fn iter<'a>(&'a self) -> impl Iterator { self.queue .iter() .map(|entry| (&entry.0.key, &entry.0.value))