From 621b08538161d8fbb9fe817635eae0a1c0a73f11 Mon Sep 17 00:00:00 2001 From: Baud Date: Mon, 5 Feb 2024 21:12:17 +0000 Subject: [PATCH] chore: cargo fmt --- atem-connection-rs/src/state/color.rs | 2 +- atem-connection-rs/src/state/fairlight.rs | 37 ++++++++++++----------- atem-connection-rs/src/state/input.rs | 2 +- atem-connection-rs/src/state/recording.rs | 8 ++--- atem-connection-rs/src/state/streaming.rs | 8 ++--- 5 files changed, 30 insertions(+), 27 deletions(-) diff --git a/atem-connection-rs/src/state/color.rs b/atem-connection-rs/src/state/color.rs index 4f8acb1..60b07fb 100644 --- a/atem-connection-rs/src/state/color.rs +++ b/atem-connection-rs/src/state/color.rs @@ -2,5 +2,5 @@ pub struct ColorGeneratorState { pub hue: u64, pub saturation: u64, - pub luma: u64 + pub luma: u64, } diff --git a/atem-connection-rs/src/state/fairlight.rs b/atem-connection-rs/src/state/fairlight.rs index 3bbedfc..df89107 100644 --- a/atem-connection-rs/src/state/fairlight.rs +++ b/atem-connection-rs/src/state/fairlight.rs @@ -1,14 +1,17 @@ use std::collections::HashMap; -use crate::enums::{ExternalPortType, FairlightAnalogInputLevel, FairlightAudioMixOption, FairlightAudioSourceType, FairlightInputConfiguration, FairlightInputType}; +use crate::enums::{ + ExternalPortType, FairlightAnalogInputLevel, FairlightAudioMixOption, FairlightAudioSourceType, + FairlightInputConfiguration, FairlightInputType, +}; #[derive(Getters, new)] pub struct FairlightAudioDynamicsState { pub make_up_gain: Option, - + pub limiter: Option, pub compressor: Option, - pub expander: Option + pub expander: Option, } #[derive(Getters, new)] @@ -17,7 +20,7 @@ pub struct FairlightAudioLimiterState { pub threshold: u64, pub attack: u64, pub hold: u64, - pub release: u64 + pub release: u64, } #[derive(Getters, new)] @@ -27,7 +30,7 @@ pub struct FairlightAudioCompressorState { pub ratio: u64, pub attack: u64, pub hold: u64, - pub release: u64 + pub release: u64, } #[derive(Getters, new)] @@ -39,7 +42,7 @@ pub struct FairlightAudioExpanderState { pub ratio: u64, pub attack: u64, pub hold: u64, - pub release: u64 + pub release: u64, } #[derive(Getters, new)] @@ -47,22 +50,22 @@ pub struct FairlightAudioEqualizerBandState { pub band_enabled: bool, supported_shapes: Vec, // TODO - pub shape: u64, // TODO + pub shape: u64, // TODO supported_frequency_ranges: Vec, // TODO - pub frequency_ranges: u64, // TODO + pub frequency_ranges: u64, // TODO pub frequency: u64, pub gain: u64, - pub q_factor: u64 + pub q_factor: u64, } #[derive(Getters, new)] pub struct FairlightAudioMasterChannelPropertiesState { // Gain in decibel, -Infinity to +6dB pub fader_gain: u64, - pub follow_fade_to_black: bool + pub follow_fade_to_black: bool, } #[derive(Getters, new)] @@ -78,21 +81,21 @@ pub struct FairlightAudioMonitorChannel { pub gain: u64, pub input_master_gain: u64, pub input_talkback_gain: u64, - pub input_sidetone_gain: u64 + pub input_sidetone_gain: u64, } #[derive(Getters, new)] pub struct FairlightAudioSource { pub properties: Option, pub equalizer: Option, - pub dynamics: Option + pub dynamics: Option, } #[derive(Getters, new)] pub struct FairlightAudioEqualizerState { pub enabled: bool, pub gain: u64, - bands: Vec + bands: Vec, } #[derive(Getters, new)] @@ -110,13 +113,13 @@ pub struct FairlightAudioSourcePropertiesState { pub fader_gain: u64, supported_mix_options: Vec, - pub mix_option: FairlightAudioMixOption + pub mix_option: FairlightAudioMixOption, } #[derive(Getters, new)] pub struct FairlightAudioInput { pub properties: Option, - pub sources: HashMap + pub sources: HashMap, } #[derive(Getters, new)] @@ -128,7 +131,7 @@ pub struct FairlightAudioInputProperties { pub active_configuration: FairlightInputConfiguration, supported_input_levels: Vec, - pub activeInputLevel: FairlightAnalogInputLevel + pub active_input_level: FairlightAnalogInputLevel, } #[derive(Getters, new)] @@ -137,5 +140,5 @@ pub struct AtemFairlightAudioState { pub master: Option, pub monitor: Option, - pub audio_follow_video_crossfade_transition_enabled: Option + pub audio_follow_video_crossfade_transition_enabled: Option, } diff --git a/atem-connection-rs/src/state/input.rs b/atem-connection-rs/src/state/input.rs index 5fd2f0b..a53742a 100644 --- a/atem-connection-rs/src/state/input.rs +++ b/atem-connection-rs/src/state/input.rs @@ -10,5 +10,5 @@ pub struct InputChannel { pub external_port_type: ExternalPortType, internal_port_type: InternalPortType, source_availability: SourceAvailability, - me_availability: MeAvailability + me_availability: MeAvailability, } diff --git a/atem-connection-rs/src/state/recording.rs b/atem-connection-rs/src/state/recording.rs index 3cafa4b..10ac4de 100644 --- a/atem-connection-rs/src/state/recording.rs +++ b/atem-connection-rs/src/state/recording.rs @@ -11,7 +11,7 @@ pub struct RecordingState { pub duration: Option, - pub disks: HashMap + pub disks: HashMap, } #[derive(Getters, new)] @@ -19,7 +19,7 @@ pub struct RecordingDiskProperties { pub disk_id: u64, pub volume_name: String, pub recording_time_available: u64, - pub status: RecordingDiskStatus + pub status: RecordingDiskStatus, } #[derive(Getters, new)] @@ -27,7 +27,7 @@ pub struct RecordingStateStatus { pub state: RecordingStatus, pub error: RecordingError, - pub recording_time_available: u64 + pub recording_time_available: u64, } #[derive(Getters, new)] @@ -37,5 +37,5 @@ pub struct RecordingStateProperties { pub working_set_1_disk_id: u64, pub working_set_2_disk_id: u64, - pub record_in_all_cameras: bool + pub record_in_all_cameras: bool, } diff --git a/atem-connection-rs/src/state/streaming.rs b/atem-connection-rs/src/state/streaming.rs index 5608ec1..a53bc56 100644 --- a/atem-connection-rs/src/state/streaming.rs +++ b/atem-connection-rs/src/state/streaming.rs @@ -8,19 +8,19 @@ pub struct StreamingState { pub stats: Option, pub service: StreamingServiceProperties, - pub duration: Option + pub duration: Option, } #[derive(Getters, new)] pub struct StreamingStateStatus { state: StreamingStatus, - error: StreamingError + error: StreamingError, } #[derive(Getters, new)] pub struct StreamingStateStats { cache_used: u64, - encoding_bitrate: u64 + encoding_bitrate: u64, } pub struct StreamingServiceProperties { @@ -28,5 +28,5 @@ pub struct StreamingServiceProperties { pub url: String, pub key: String, - bitrates: (u64, u64) + bitrates: (u64, u64), }