add lifetimes to refs in ReadableAccount (#31258)

This commit is contained in:
Jeff Washington (jwash) 2023-04-19 13:35:59 -05:00 committed by GitHub
parent 377ba53a31
commit 812d899c7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -176,10 +176,10 @@ impl<'a> ReadableAccount for AppendVecStoredAccountMeta<'a> {
fn lamports(&self) -> u64 {
self.account_meta.lamports
}
fn data(&self) -> &[u8] {
fn data(&self) -> &'a [u8] {
self.data()
}
fn owner(&self) -> &Pubkey {
fn owner(&self) -> &'a Pubkey {
&self.account_meta.owner
}
fn executable(&self) -> bool {