[style](trx-client): format wrapped lines
Co-authored-by: OpenAI Codex <codex@openai.com> Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
@@ -18,9 +18,9 @@ use tracing::{info, warn};
|
|||||||
use trx_frontend::RemoteRigEntry;
|
use trx_frontend::RemoteRigEntry;
|
||||||
|
|
||||||
use trx_core::audio::{
|
use trx_core::audio::{
|
||||||
read_audio_msg, write_audio_msg, AudioStreamInfo, AUDIO_MSG_AIS_DECODE,
|
read_audio_msg, write_audio_msg, AudioStreamInfo, AUDIO_MSG_AIS_DECODE, AUDIO_MSG_APRS_DECODE,
|
||||||
AUDIO_MSG_APRS_DECODE, AUDIO_MSG_CW_DECODE, AUDIO_MSG_FT8_DECODE, AUDIO_MSG_RX_FRAME,
|
AUDIO_MSG_CW_DECODE, AUDIO_MSG_FT8_DECODE, AUDIO_MSG_RX_FRAME, AUDIO_MSG_STREAM_INFO,
|
||||||
AUDIO_MSG_STREAM_INFO, AUDIO_MSG_TX_FRAME, AUDIO_MSG_VDES_DECODE, AUDIO_MSG_WSPR_DECODE,
|
AUDIO_MSG_TX_FRAME, AUDIO_MSG_VDES_DECODE, AUDIO_MSG_WSPR_DECODE,
|
||||||
};
|
};
|
||||||
use trx_core::decode::DecodedMessage;
|
use trx_core::decode::DecodedMessage;
|
||||||
|
|
||||||
|
|||||||
@@ -385,8 +385,7 @@ impl ClientConfig {
|
|||||||
&& self.frontends.http.spectrum_usable_span_ratio <= 1.0)
|
&& self.frontends.http.spectrum_usable_span_ratio <= 1.0)
|
||||||
{
|
{
|
||||||
return Err(
|
return Err(
|
||||||
"[frontends.http].spectrum_usable_span_ratio must be > 0.0 and <= 1.0"
|
"[frontends.http].spectrum_usable_span_ratio must be > 0.0 and <= 1.0".to_string(),
|
||||||
.to_string(),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if self.frontends.rigctl.enabled && self.frontends.rigctl.rig_ports.is_empty() {
|
if self.frontends.rigctl.enabled && self.frontends.rigctl.rig_ports.is_empty() {
|
||||||
@@ -632,7 +631,10 @@ spectrum_usable_span_ratio = 0.9
|
|||||||
|
|
||||||
let config: ClientConfig = toml::from_str(toml_str).unwrap();
|
let config: ClientConfig = toml::from_str(toml_str).unwrap();
|
||||||
assert_eq!(config.general.callsign, Some("W1AW".to_string()));
|
assert_eq!(config.general.callsign, Some("W1AW".to_string()));
|
||||||
assert_eq!(config.general.website_url, Some("https://example.com".to_string()));
|
assert_eq!(
|
||||||
|
config.general.website_url,
|
||||||
|
Some("https://example.com".to_string())
|
||||||
|
);
|
||||||
assert_eq!(config.general.website_name, Some("Example".to_string()));
|
assert_eq!(config.general.website_name, Some("Example".to_string()));
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
config.general.ais_vessel_url_base,
|
config.general.ais_vessel_url_base,
|
||||||
|
|||||||
Reference in New Issue
Block a user