From 1d15db37c5c62ebab3aca24c81e4ee0b3d5ac276 Mon Sep 17 00:00:00 2001 From: microwavedcola1 Date: Sat, 2 Apr 2022 10:02:09 +0200 Subject: [PATCH] clippy Signed-off-by: microwavedcola1 --- programs/mango-v4/src/instructions/serum3_place_order.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/programs/mango-v4/src/instructions/serum3_place_order.rs b/programs/mango-v4/src/instructions/serum3_place_order.rs index 0482c8576..350e6aa89 100644 --- a/programs/mango-v4/src/instructions/serum3_place_order.rs +++ b/programs/mango-v4/src/instructions/serum3_place_order.rs @@ -161,15 +161,15 @@ pub fn serum3_place_order( // matched against an existing other order. // let order = serum_dex::instruction::NewOrderInstructionV3 { - side: u8::try_from(side as u8).unwrap().try_into().unwrap(), + side: u8::try_from(side).unwrap().try_into().unwrap(), limit_price: limit_price.try_into().unwrap(), max_coin_qty: max_base_qty.try_into().unwrap(), max_native_pc_qty_including_fees: max_native_quote_qty_including_fees.try_into().unwrap(), - self_trade_behavior: u8::try_from(self_trade_behavior as u8) + self_trade_behavior: u8::try_from(self_trade_behavior) .unwrap() .try_into() .unwrap(), - order_type: u8::try_from(order_type as u8).unwrap().try_into().unwrap(), + order_type: u8::try_from(order_type).unwrap().try_into().unwrap(), client_order_id, limit, };