[style](trx-client): apply rustfmt formatting

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
2026-03-29 23:50:55 +02:00
parent f6282d17ca
commit 72a496aadb
2 changed files with 5 additions and 19 deletions
@@ -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)
}
@@ -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
})
});