style(squad): rustfmt the squad-ext transport routes

Formatting-only follow-up to the squad-ext routes; no behavior change.
Pre-existing Core fmt drift elsewhere (e.g. app.rs route chain) predates
this branch (615c5fd is already not fmt-clean) and is intentionally left
untouched — not reformatting frozen Core beyond the squad-ext change.
This commit is contained in:
funman300
2026-08-12 03:58:34 +00:00
parent 9b2c6b82f2
commit 3084a46dcc
+7 -4
View File
@@ -13,7 +13,8 @@ use crate::{
models::squad::{SaveSquadRequest, SlotAssignment, SquadReplacement}, models::squad::{SaveSquadRequest, SlotAssignment, SquadReplacement},
services::{ services::{
club as club_svc, profile as profile_svc, squad as squad_svc, club as club_svc, profile as profile_svc, squad as squad_svc,
squad::SquadExtState, squad_rules::{ClientReportedEvaluation, DefaultSquadRules}, squad::SquadExtState,
squad_rules::{ClientReportedEvaluation, DefaultSquadRules},
}, },
}; };
@@ -104,7 +105,6 @@ fn squad_response(
}) })
} }
// ─────────── Game-extension-aware squad transport (host composition) ───────── // ─────────── Game-extension-aware squad transport (host composition) ─────────
// //
// These two routes expose the already-existing extension services // These two routes expose the already-existing extension services
@@ -140,7 +140,10 @@ pub async fn get_squad_ext(
"payload": row.payload, "payload": row.payload,
"stored_fingerprint": row.canonical_fingerprint, "stored_fingerprint": row.canonical_fingerprint,
}), }),
SquadExtState::Stale { stored, current_fingerprint } => json!({ SquadExtState::Stale {
stored,
current_fingerprint,
} => json!({
"state": "stale", "state": "stale",
"schema_version": stored.schema_version, "schema_version": stored.schema_version,
"payload": stored.payload, "payload": stored.payload,
@@ -231,4 +234,4 @@ pub async fn put_squad_replace(
"canonical_fingerprint": out.canonical_fingerprint, "canonical_fingerprint": out.canonical_fingerprint,
"slots_written": out.slots_written, "slots_written": out.slots_written,
}))) })))
} }