From e01d2130b147165d22b1d14f5c966dfa9f7bfdd9 Mon Sep 17 00:00:00 2001 From: Raine Date: Wed, 28 Feb 2024 15:07:19 +0100 Subject: [PATCH] fix: rust changed some things... --- domo_lib/Cargo.lock | 2 +- domo_proto/src/packet/mod.rs | 8 -------- domo_proto/src/packet/packet_data.rs | 1 - 3 files changed, 1 insertion(+), 10 deletions(-) diff --git a/domo_lib/Cargo.lock b/domo_lib/Cargo.lock index ac1b40c..8db798c 100644 --- a/domo_lib/Cargo.lock +++ b/domo_lib/Cargo.lock @@ -26,7 +26,7 @@ dependencies = [ [[package]] name = "domo_proto" -version = "1.0.0" +version = "1.0.2" dependencies = [ "crc32fast", "rand", diff --git a/domo_proto/src/packet/mod.rs b/domo_proto/src/packet/mod.rs index 835775d..5c3050c 100644 --- a/domo_proto/src/packet/mod.rs +++ b/domo_proto/src/packet/mod.rs @@ -47,14 +47,6 @@ impl Default for Packet { /// Secretly calls RawPacket::try_from().into() -impl TryFrom for Packet { - type Error = io::Error; - - fn try_from(value: RawPacket) -> Result { - value.into() - } -} - impl TryFrom> for Packet { type Error = io::Error; fn try_from(data: Vec) -> io::Result { diff --git a/domo_proto/src/packet/packet_data.rs b/domo_proto/src/packet/packet_data.rs index b676372..f93fb9b 100644 --- a/domo_proto/src/packet/packet_data.rs +++ b/domo_proto/src/packet/packet_data.rs @@ -1,5 +1,4 @@ use std::io; -use std::os::linux::raw; use crate::commands::property_control::PropertyControlCommand; use crate::commands::node_management::NodeManagementCommand; use crate::commands::raw_data_transmission::RawDataTransmission;