|
@@ -9,13 +9,13 @@ use std::ops::Deref;
|
|
|
/// Account container that checks ownership on deserialization.
|
|
|
#[derive(Clone)]
|
|
|
pub struct Program<'info, T: Id + AccountDeserialize + Clone> {
|
|
|
- account: T,
|
|
|
+ _account: T,
|
|
|
info: AccountInfo<'info>,
|
|
|
}
|
|
|
|
|
|
impl<'a, T: Id + AccountDeserialize + Clone> Program<'a, T> {
|
|
|
- fn new(info: AccountInfo<'a>, account: T) -> Program<'a, T> {
|
|
|
- Self { info, account }
|
|
|
+ fn new(info: AccountInfo<'a>, _account: T) -> Program<'a, T> {
|
|
|
+ Self { info, _account }
|
|
|
}
|
|
|
|
|
|
/// Deserializes the given `info` into a `Program`.
|