fix: rust changed some things...
This commit is contained in:
parent
3caff2dd58
commit
e01d2130b1
3 changed files with 1 additions and 10 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue