From 46cca11e00162b3d17c08363dd8250074e738542 Mon Sep 17 00:00:00 2001 From: Baud Date: Mon, 11 Mar 2024 00:04:05 +0000 Subject: [PATCH] chore: More cleanups --- atem-connection-rs/src/atem_lib/atem_packet.rs | 6 ------ atem-connection-rs/src/state/info.rs | 2 +- atem-connection-rs/src/state/video/upstream_keyers.rs | 2 +- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/atem-connection-rs/src/atem_lib/atem_packet.rs b/atem-connection-rs/src/atem_lib/atem_packet.rs index 4c562d1..deeb5b9 100755 --- a/atem-connection-rs/src/atem_lib/atem_packet.rs +++ b/atem-connection-rs/src/atem_lib/atem_packet.rs @@ -1,6 +1,5 @@ #[derive(Debug)] pub struct AtemPacket<'packet_buffer> { - length: u16, flags: u8, session_id: u16, remote_packet_id: u16, @@ -36,10 +35,6 @@ impl From for u8 { } impl<'packet_buffer> AtemPacket<'packet_buffer> { - pub fn length(&self) -> u16 { - self.length - } - pub fn session_id(&self) -> u16 { self.session_id } @@ -109,7 +104,6 @@ impl<'packet_buffer> TryFrom<&'packet_buffer [u8]> for AtemPacket<'packet_buffer }; Ok(AtemPacket { - length, flags, session_id, remote_packet_id, diff --git a/atem-connection-rs/src/state/info.rs b/atem-connection-rs/src/state/info.rs index 0bb4fd7..43a4b16 100644 --- a/atem-connection-rs/src/state/info.rs +++ b/atem-connection-rs/src/state/info.rs @@ -82,5 +82,5 @@ pub struct DeviceInfo { pub macro_pool: Option, pub media_pool: Option, pub multiviewer: Option, - pub lastTime: Option, + pub last_time: Option, } diff --git a/atem-connection-rs/src/state/video/upstream_keyers.rs b/atem-connection-rs/src/state/video/upstream_keyers.rs index a7ad15a..43ab537 100644 --- a/atem-connection-rs/src/state/video/upstream_keyers.rs +++ b/atem-connection-rs/src/state/video/upstream_keyers.rs @@ -84,7 +84,7 @@ pub struct UpstreamKeyerFlyKeyFrame { } #[derive(Clone, PartialEq)] -enum UpstreamKeyerMaskSettings { +pub enum UpstreamKeyerMaskSettings { DVE(UpstreamKeyerDVESettings), FlyKeyFrame(UpstreamKeyerFlyKeyFrame), }