if you like it then you should have put a box 'round it

Change-Id: I504dd476f53bb5d0dd101a5278f485e83b32bd08
This commit is contained in:
Hendrik Hofstadt 2021-08-25 21:08:12 +02:00
parent 5f52dc6d76
commit a8a8cbe183
2 changed files with 2 additions and 2 deletions

View File

@ -226,7 +226,7 @@ impl<
};
}
Ok(Data(ctx.info().clone(), data))
Ok(Data(Box::new(ctx.info().clone()), data))
}
fn deps() -> Vec<Pubkey> {

View File

@ -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,
);