Fix warning when running tests

This commit is contained in:
Britt Cyr 2023-05-24 13:58:41 -04:00 committed by Christian Kamm
parent 1cc77af7fa
commit 7803f1dc9d
1 changed files with 2 additions and 1 deletions

View File

@ -312,7 +312,8 @@ async fn derive_liquidation_remaining_account_metas(
}
fn from_serum_style_pubkey(d: &[u64; 4]) -> Pubkey {
Pubkey::new(bytemuck::cast_slice(d as &[_]))
let b: &[u8; 32] = bytemuck::cast_ref(d);
Pubkey::from(*b)
}
pub async fn get_mango_account(solana: &SolanaCookie, account: Pubkey) -> MangoAccountValue {