-
Notifications
You must be signed in to change notification settings - Fork 324
Open
Description
https://github.com/raydium-io/raydium-clmm/blob/master/programs/amm/src/util/account_load.rs#L107
bytemuck::from_bytes_mut(&mut data.deref_mut()[8..mem::size_of::<T>() + 8])
The call to deref_mut() can be removed.
bytemuck::from_bytes_mut(&mut data[8..mem::size_of::<T>() + 8])
Refer to the code on line 124.
bytemuck::from_bytes(&data[8..mem::size_of::<T>() + 8])
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels