style(core): rustfmt the reclassify tests
CI / Build, lint & test (push) Successful in 3m14s

This commit is contained in:
funman300
2026-08-21 20:45:29 +00:00
parent c896545cf0
commit 30fae1a2f9
+13 -7
View File
@@ -305,16 +305,20 @@ async fn reclassify_corrects_already_imported_rows_and_is_idempotent() {
// Imported before the taxonomy existed: everything landed as `player`.
let ow = owned(&ids);
let req = request("g_reclass", "fp-reclass", ow, None);
apply_profile_import(&pool, &db, &req).await.expect("import");
apply_profile_import(&pool, &db, &req)
.await
.expect("import");
let kind_of = |card: String| {
let pool = pool.clone();
async move {
sqlx::query_scalar::<_, String>("SELECT content_kind FROM owned_cards WHERE card_id = ?")
.bind(card)
.fetch_one(&pool)
.await
.unwrap()
sqlx::query_scalar::<_, String>(
"SELECT content_kind FROM owned_cards WHERE card_id = ?",
)
.bind(card)
.fetch_one(&pool)
.await
.unwrap()
}
};
assert_eq!(kind_of(ids[0].clone()).await, "player");
@@ -336,7 +340,9 @@ async fn reclassify_corrects_already_imported_rows_and_is_idempotent() {
},
],
};
let out = reclassify_owned_content(&pool, &rc).await.expect("reclassify");
let out = reclassify_owned_content(&pool, &rc)
.await
.expect("reclassify");
assert_eq!(out.updated, 2);
assert_eq!(out.unchanged, 0);
assert_eq!(