diff --git a/src/trx-client/src/audio_client.rs b/src/trx-client/src/audio_client.rs index 580091b..70c80b6 100644 --- a/src/trx-client/src/audio_client.rs +++ b/src/trx-client/src/audio_client.rs @@ -18,9 +18,9 @@ use tracing::{info, warn}; use trx_frontend::RemoteRigEntry; use trx_core::audio::{ - read_audio_msg, write_audio_msg, AudioStreamInfo, AUDIO_MSG_AIS_DECODE, - AUDIO_MSG_APRS_DECODE, AUDIO_MSG_CW_DECODE, AUDIO_MSG_FT8_DECODE, AUDIO_MSG_RX_FRAME, - AUDIO_MSG_STREAM_INFO, AUDIO_MSG_TX_FRAME, AUDIO_MSG_VDES_DECODE, AUDIO_MSG_WSPR_DECODE, + read_audio_msg, write_audio_msg, AudioStreamInfo, AUDIO_MSG_AIS_DECODE, AUDIO_MSG_APRS_DECODE, + AUDIO_MSG_CW_DECODE, AUDIO_MSG_FT8_DECODE, AUDIO_MSG_RX_FRAME, AUDIO_MSG_STREAM_INFO, + AUDIO_MSG_TX_FRAME, AUDIO_MSG_VDES_DECODE, AUDIO_MSG_WSPR_DECODE, }; use trx_core::decode::DecodedMessage; diff --git a/src/trx-client/src/config.rs b/src/trx-client/src/config.rs index 6c486a9..4fbb671 100644 --- a/src/trx-client/src/config.rs +++ b/src/trx-client/src/config.rs @@ -385,8 +385,7 @@ impl ClientConfig { && self.frontends.http.spectrum_usable_span_ratio <= 1.0) { return Err( - "[frontends.http].spectrum_usable_span_ratio must be > 0.0 and <= 1.0" - .to_string(), + "[frontends.http].spectrum_usable_span_ratio must be > 0.0 and <= 1.0".to_string(), ); } 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(); 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.ais_vessel_url_base,