From 3084a46dccbefc7664ddd2b60808583ad8646d50 Mon Sep 17 00:00:00 2001 From: funman300 Date: Wed, 12 Aug 2026 03:58:34 +0000 Subject: [PATCH] style(squad): rustfmt the squad-ext transport routes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- src/routes/squad.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/routes/squad.rs b/src/routes/squad.rs index 32f5339..e136a71 100644 --- a/src/routes/squad.rs +++ b/src/routes/squad.rs @@ -13,7 +13,8 @@ use crate::{ models::squad::{SaveSquadRequest, SlotAssignment, SquadReplacement}, services::{ 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) ───────── // // These two routes expose the already-existing extension services @@ -140,7 +140,10 @@ pub async fn get_squad_ext( "payload": row.payload, "stored_fingerprint": row.canonical_fingerprint, }), - SquadExtState::Stale { stored, current_fingerprint } => json!({ + SquadExtState::Stale { + stored, + current_fingerprint, + } => json!({ "state": "stale", "schema_version": stored.schema_version, "payload": stored.payload, @@ -231,4 +234,4 @@ pub async fn put_squad_replace( "canonical_fingerprint": out.canonical_fingerprint, "slots_written": out.slots_written, }))) -} \ No newline at end of file +}