chore(api): apply rustfmt across modules and tests

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Chengdong Zhang
2026-09-21 18:52:52 +08:00
co-authored by Cursor
parent 6c1357ec4d
commit a4ef6ca49e
46 changed files with 495 additions and 334 deletions
+1 -6
View File
@@ -335,12 +335,7 @@ async fn cancelling_a_pending_order_restores_its_coupon() {
let shop_id = coupon["shop_id"].as_str().unwrap().to_string();
add_to_cart(&app, &token, &sku, 2).await;
let res = checkout_with(
&app,
&token,
HashMap::from([(shop_id, coupon_id.clone())]),
)
.await;
let res = checkout_with(&app, &token, HashMap::from([(shop_id, coupon_id.clone())])).await;
assert_eq!(res.status(), 201);
let orders: Vec<serde_json::Value> = res.json().await.unwrap();
let order_id = orders[0]["id"].as_str().unwrap().to_string();