Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
calumrussell committed Nov 1, 2024
1 parent a33dfd3 commit 3dec0c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rotala-http/src/http/uist_v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ pub mod server {
let mut uist = app.lock().unwrap();
let (backtest_id,) = path.into_inner();
if let Some(()) = uist.modify_order(
modify_order.order_id.clone(),
modify_order.order_id,
modify_order.quantity_change,
backtest_id,
) {
Expand All @@ -349,7 +349,7 @@ pub mod server {
) -> Result<web::Json<()>, UistV2Error> {
let mut uist = app.lock().unwrap();
let (backtest_id,) = path.into_inner();
if let Some(()) = uist.cancel_order(cancel_order.order_id.clone(), backtest_id) {
if let Some(()) = uist.cancel_order(cancel_order.order_id, backtest_id) {
Ok(web::Json(()))
} else {
Err(UistV2Error::UnknownBacktest)
Expand Down

0 comments on commit 3dec0c1

Please sign in to comment.