We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
recommended-2
1 parent 84bb0e2 commit 6005934Copy full SHA for 6005934
lints/type_cosplay/ui/recommended-2/src/lib.rs
@@ -11,8 +11,7 @@ pub mod type_cosplay_recommended {
11
ctx: Context<UpdateUser>,
12
) -> anchor_lang::solana_program::entrypoint::ProgramResult {
13
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();
+ let user = User::try_deserialize(&mut &**account_info.data.borrow()).unwrap();
16
17
msg!("User: {:?}", user.authority);
18
msg!("GM {}", ctx.accounts.user.authority);
0 commit comments