From 1f90247c3ae5c90fff588015f6f08945e9c230d4 Mon Sep 17 00:00:00 2001 From: GroovieGermanikus Date: Mon, 4 Sep 2023 15:56:06 +0200 Subject: [PATCH] removed lifetime --- connector/src/chain_data.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connector/src/chain_data.rs b/connector/src/chain_data.rs index 47e9865..9054644 100644 --- a/connector/src/chain_data.rs +++ b/connector/src/chain_data.rs @@ -227,7 +227,7 @@ impl ChainData { } /// Ref to the most recent live write of the pubkey - pub fn account<'a>(&'a self, pubkey: &Pubkey) -> anyhow::Result<&'a AccountData> { + pub fn account(&self, pubkey: &Pubkey) -> anyhow::Result<&AccountData> { self.accounts .get(pubkey) .ok_or_else(|| anyhow::anyhow!("account {} not found", pubkey))?