if you like it then you should have put a box 'round it Change-Id: I504dd476f53bb5d0dd101a5278f485e83b32bd08
This commit is contained in:
parent
5f52dc6d76
commit
a8a8cbe183
|
@ -226,7 +226,7 @@ impl<
|
|||
};
|
||||
}
|
||||
|
||||
Ok(Data(ctx.info().clone(), data))
|
||||
Ok(Data(Box::new(ctx.info().clone()), data))
|
||||
}
|
||||
|
||||
fn deps() -> Vec<Pubkey> {
|
||||
|
|
|
@ -46,7 +46,7 @@ pub enum AccountState {
|
|||
/// Data<(), { AccountState::Uninitialized }>
|
||||
#[rustfmt::skip]
|
||||
pub struct Data<'r, T: Owned + Default, const IsInitialized: AccountState> (
|
||||
pub Info<'r>,
|
||||
pub Box<Info<'r>>,
|
||||
pub T,
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue