fix clippy warning
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
parent
dfd1dc5216
commit
7803cae654
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue