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]]
|
||||
name = "domo_proto"
|
||||
version = "1.0.0"
|
||||
version = "1.0.2"
|
||||
dependencies = [
|
||||
"crc32fast",
|
||||
"rand",
|
||||
|
|
|
@ -47,14 +47,6 @@ impl Default for Packet {
|
|||
|
||||
/// 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 {
|
||||
type Error = io::Error;
|
||||
fn try_from(data: Vec<u8>) -> io::Result<Self> {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue