From 72a496aadb017fc94d133c3724228d18528aa9a9 Mon Sep 17 00:00:00 2001 From: Stan Grams Date: Sun, 29 Mar 2026 23:50:55 +0200 Subject: [PATCH] [style](trx-client): apply rustfmt formatting Co-Authored-By: Claude Opus 4.6 (1M context) Signed-off-by: Stan Grams --- .../trx-frontend-http/src/api/assets.rs | 7 +------ .../trx-frontend-http/src/scheduler.rs | 17 ++++------------- 2 files changed, 5 insertions(+), 19 deletions(-) diff --git a/src/trx-client/trx-frontend/trx-frontend-http/src/api/assets.rs b/src/trx-client/trx-frontend/trx-frontend-http/src/api/assets.rs index 27b7c5f..6f2ab60 100644 --- a/src/trx-client/trx-frontend/trx-frontend-http/src/api/assets.rs +++ b/src/trx-client/trx-frontend/trx-frontend-http/src/api/assets.rs @@ -355,10 +355,5 @@ pub(crate) async fn vchan_js(req: HttpRequest) -> impl Responder { #[get("/bandplan.json")] pub(crate) async fn bandplan_json(req: HttpRequest) -> impl Responder { let c = gz_bandplan_json(); - static_asset_response( - &req, - "application/json; charset=utf-8", - &c.gz, - &c.etag, - ) + static_asset_response(&req, "application/json; charset=utf-8", &c.gz, &c.etag) } diff --git a/src/trx-client/trx-frontend/trx-frontend-http/src/scheduler.rs b/src/trx-client/trx-frontend/trx-frontend-http/src/scheduler.rs index 995992b..443e703 100644 --- a/src/trx-client/trx-frontend/trx-frontend-http/src/scheduler.rs +++ b/src/trx-client/trx-frontend/trx-frontend-http/src/scheduler.rs @@ -727,11 +727,7 @@ pub fn spawn_scheduler_task( // above its minimum elevation, we retune to the // satellite's bookmark and enable its decoders (e.g. // LRPT). - if let Some(sat_target) = find_active_satellite_target( - &config, - &context, - now_ms, - ) { + if let Some(sat_target) = find_active_satellite_target(&config, &context, now_ms) { let target = AppliedTarget { bookmark_id: sat_target.bookmark_id.clone(), center_hz: sat_target.center_hz, @@ -743,8 +739,7 @@ pub fn spawn_scheduler_task( continue; } - let Some(bm) = - bookmarks.get_for_rig(&config.remote, &sat_target.bookmark_id) + let Some(bm) = bookmarks.get_for_rig(&config.remote, &sat_target.bookmark_id) else { warn!( "scheduler: satellite bookmark '{}' not found for remote '{}'", @@ -790,9 +785,7 @@ pub fn spawn_scheduler_task( { last_applied.remove(&config.remote); // Clear the active_satellite from status. - if let Ok(mut map) = - status_map.write() - { + if let Ok(mut map) = status_map.write() { if let Some(st) = map.get_mut(&config.remote) { st.active_satellite = None; } @@ -940,9 +933,7 @@ fn find_active_satellite_target( // Check for active pass or imminent pass within pretune window. let pass = active_passes.get(&entry.norad_id).copied().or_else(|| { passes.passes.iter().find(|p| { - p.norad_id == entry.norad_id - && p.aos_ms > now_ms - && p.aos_ms <= now_ms + pretune_ms + p.norad_id == entry.norad_id && p.aos_ms > now_ms && p.aos_ms <= now_ms + pretune_ms }) });