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
+9 -3
View File
@@ -305,12 +305,16 @@ async fn reclassify_corrects_already_imported_rows_and_is_idempotent() {
// Imported before the taxonomy existed: everything landed as `player`. // Imported before the taxonomy existed: everything landed as `player`.
let ow = owned(&ids); let ow = owned(&ids);
let req = request("g_reclass", "fp-reclass", ow, None); 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 kind_of = |card: String| {
let pool = pool.clone(); let pool = pool.clone();
async move { async move {
sqlx::query_scalar::<_, String>("SELECT content_kind FROM owned_cards WHERE card_id = ?") sqlx::query_scalar::<_, String>(
"SELECT content_kind FROM owned_cards WHERE card_id = ?",
)
.bind(card) .bind(card)
.fetch_one(&pool) .fetch_one(&pool)
.await .await
@@ -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.updated, 2);
assert_eq!(out.unchanged, 0); assert_eq!(out.unchanged, 0);
assert_eq!( assert_eq!(