Skip to content

Commit 6005934

Browse files
committed
Update recommended-2 test
1 parent 84bb0e2 commit 6005934

File tree

1 file changed

+1
-2
lines changed
  • lints/type_cosplay/ui/recommended-2/src

1 file changed

+1
-2
lines changed

lints/type_cosplay/ui/recommended-2/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ pub mod type_cosplay_recommended {
1111
ctx: Context<UpdateUser>,
1212
) -> anchor_lang::solana_program::entrypoint::ProgramResult {
1313
let account_info: &AccountInfo = ctx.accounts.user.as_ref();
14-
let mut data = &*account_info.data.take();
15-
let user = User::try_deserialize(&mut data).unwrap();
14+
let user = User::try_deserialize(&mut &**account_info.data.borrow()).unwrap();
1615

1716
msg!("User: {:?}", user.authority);
1817
msg!("GM {}", ctx.accounts.user.authority);

0 commit comments

Comments
 (0)