some ReadableAccount changes (#16688)
* some ReadableAccount changes * deref
This commit is contained in:
committed by
GitHub
parent
189d2121e6
commit
69cbad0869
@@ -57,13 +57,13 @@ pub struct AccountMeta {
|
||||
pub rent_epoch: Epoch,
|
||||
}
|
||||
|
||||
impl<'a> From<&'a AccountSharedData> for AccountMeta {
|
||||
fn from(account: &'a AccountSharedData) -> Self {
|
||||
impl<'a, T: ReadableAccount> From<&'a T> for AccountMeta {
|
||||
fn from(account: &'a T) -> Self {
|
||||
Self {
|
||||
lamports: account.lamports,
|
||||
owner: account.owner,
|
||||
executable: account.executable,
|
||||
rent_epoch: account.rent_epoch,
|
||||
lamports: account.lamports(),
|
||||
owner: *account.owner(),
|
||||
executable: account.executable(),
|
||||
rent_epoch: account.rent_epoch(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user