Add AsRef<AccountInfo> for AccountInfo
This commit is contained in:
committed by
Michael Vines
parent
a0e8b860b1
commit
930465e67c
@ -220,6 +220,12 @@ pub fn next_account_infos<'a, 'b: 'a>(
|
|||||||
Ok(accounts)
|
Ok(accounts)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl<'a> AsRef<AccountInfo<'a>> for AccountInfo<'a> {
|
||||||
|
fn as_ref(&self) -> &AccountInfo<'a> {
|
||||||
|
self
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
Reference in New Issue
Block a user