removed lifetime

This commit is contained in:
GroovieGermanikus 2023-09-04 15:56:06 +02:00
parent 786e2f451d
commit 1f90247c3a
1 changed files with 1 additions and 1 deletions

View File

@ -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))?