fix: rust changed some things...
This commit is contained in:
parent
3caff2dd58
commit
e01d2130b1
3 changed files with 1 additions and 10 deletions
2
domo_lib/Cargo.lock
generated
2
domo_lib/Cargo.lock
generated
|
@ -26,7 +26,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "domo_proto"
|
name = "domo_proto"
|
||||||
version = "1.0.0"
|
version = "1.0.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"crc32fast",
|
"crc32fast",
|
||||||
"rand",
|
"rand",
|
||||||
|
|
|
@ -47,14 +47,6 @@ impl Default for Packet {
|
||||||
|
|
||||||
/// Secretly calls RawPacket::try_from().into()
|
/// Secretly calls RawPacket::try_from().into()
|
||||||
|
|
||||||
impl TryFrom<RawPacket> for Packet {
|
|
||||||
type Error = io::Error;
|
|
||||||
|
|
||||||
fn try_from(value: RawPacket) -> Result<Self, Self::Error> {
|
|
||||||
value.into()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl TryFrom<Vec<u8>> for Packet {
|
impl TryFrom<Vec<u8>> for Packet {
|
||||||
type Error = io::Error;
|
type Error = io::Error;
|
||||||
fn try_from(data: Vec<u8>) -> io::Result<Self> {
|
fn try_from(data: Vec<u8>) -> io::Result<Self> {
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
use std::io;
|
use std::io;
|
||||||
use std::os::linux::raw;
|
|
||||||
use crate::commands::property_control::PropertyControlCommand;
|
use crate::commands::property_control::PropertyControlCommand;
|
||||||
use crate::commands::node_management::NodeManagementCommand;
|
use crate::commands::node_management::NodeManagementCommand;
|
||||||
use crate::commands::raw_data_transmission::RawDataTransmission;
|
use crate::commands::raw_data_transmission::RawDataTransmission;
|
||||||
|
|
Loading…
Reference in a new issue