fix clippy warning

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
microwavedcola1 2022-04-03 06:16:41 +02:00
parent dfd1dc5216
commit 7803cae654
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ impl<'a, 'b> AccountRetriever<'a, 'b> for FixedOrderAccountRetriever<'a, 'b> {
}
fn serum_oo(&self, account_index: usize, key: &Pubkey) -> Result<Ref<'a, OpenOrders>> {
let ai = &self.ais[cm!(2u8 * self.n_banks + account_index)];
let ai = &self.ais[cm!((2 as usize) * self.n_banks + account_index)];
require!(key == ai.key, MangoError::SomeError);
serum3_cpi::load_open_orders(ai)
}