[style](trx-rs): cargo fmt

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
2026-03-30 21:25:14 +02:00
parent 92ec851dd0
commit 80887ce859
4 changed files with 14 additions and 27 deletions
+5 -1
View File
@@ -1190,7 +1190,11 @@ url = "remote.example.com:4530"
for region in &["iaru_r1", "iaru_r2", "iaru_r3"] {
let mut config = ClientConfig::default();
config.frontends.http.bandplan_region = region.to_string();
assert!(config.validate().is_ok(), "region {} should be valid", region);
assert!(
config.validate().is_ok(),
"region {} should be valid",
region
);
}
}
@@ -135,11 +135,7 @@ fn sync_scheduler_vchannels(
}
fn bookmark_decoder_kinds(bookmark: &crate::server::bookmarks::Bookmark) -> Vec<String> {
trx_protocol::decoders::resolve_bookmark_decoders(
&bookmark.decoders,
&bookmark.mode,
true,
)
trx_protocol::decoders::resolve_bookmark_decoders(&bookmark.decoders, &bookmark.mode, true)
}
// ============================================================================
@@ -232,9 +232,7 @@ impl BackgroundDecodeManager {
bookmark_name: bookmark.map(|item| item.name.clone()),
freq_hz: bookmark.map(|item| item.freq_hz),
mode: bookmark.map(|item| item.mode.clone()),
decoder_kinds: bookmark
.map(bookmark_decoder_kinds)
.unwrap_or_default(),
decoder_kinds: bookmark.map(bookmark_decoder_kinds).unwrap_or_default(),
state: "inactive".to_string(),
channel_kind: None,
}