diff --git a/src/types/config.rs b/src/types/config.rs index 3bd6fff..7e5db33 100644 --- a/src/types/config.rs +++ b/src/types/config.rs @@ -2,7 +2,6 @@ use crate::types::{ util::primitive::{read_u8_bits, write_u8_bits}, DataBits, Logf, ProfileGrid, Zero, }; -use binrw::__private::Required; use binrw::meta::{EndianKind, ReadEndian, WriteEndian}; use binrw::{BinRead, BinResult, BinWrite, Endian}; use std::io::{Read, Seek, Write}; @@ -45,7 +44,6 @@ impl BinRead for Config { fn read(reader: &mut R) -> BinResult where Self: ReadEndian, - for<'a> Self::Args<'a>: Required, { let raw = u8::read(reader)?; let pos = reader.stream_position()?; @@ -80,7 +78,6 @@ impl BinWrite for Config { fn write(&self, writer: &mut W) -> BinResult<()> where Self: WriteEndian, - for<'a> Self::Args<'a>: Required, { let mut raw: u8 = 0; let pos = writer.stream_position()?; diff --git a/src/types/motion_config.rs b/src/types/motion_config.rs index bfd2f34..af7a685 100644 --- a/src/types/motion_config.rs +++ b/src/types/motion_config.rs @@ -2,7 +2,6 @@ use crate::types::{ util::primitive::{read_u8_bits, write_u8_bits}, Direction, Mode, StepSize, Transducer, }; -use binrw::__private::Required; use binrw::meta::{EndianKind, ReadEndian, WriteEndian}; use binrw::{BinRead, BinResult, BinWrite, Endian}; use std::io::{Read, Seek, Write}; @@ -45,7 +44,6 @@ impl BinRead for MotionConfig { fn read(reader: &mut R) -> BinResult where Self: ReadEndian, - for<'a> Self::Args<'a>: Required, { let raw = u8::read(reader)?; let pos = reader.stream_position()?; @@ -76,7 +74,6 @@ impl BinWrite for MotionConfig { fn write(&self, writer: &mut W) -> BinResult<()> where Self: WriteEndian, - for<'a> Self::Args<'a>: Required, { let mut raw: u8 = 0; let pos = writer.stream_position()?; diff --git a/src/types/sensor_information.rs b/src/types/sensor_information.rs index cf4c508..131176d 100644 --- a/src/types/sensor_information.rs +++ b/src/types/sensor_information.rs @@ -1,4 +1,3 @@ -use binrw::__private::Required; use binrw::meta::{EndianKind, ReadEndian, WriteEndian}; use binrw::{BinRead, BinResult, BinWrite, Endian}; use std::fmt::{Display, Formatter}; @@ -58,7 +57,6 @@ impl BinRead for SensorInformation { fn read(reader: &mut R) -> BinResult where Self: ReadEndian, - for<'a> Self::Args<'a>: Required, { let raw = u8::read(reader)?; Ok(Self { @@ -83,7 +81,6 @@ impl BinWrite for SensorInformation { fn write(&self, writer: &mut W) -> BinResult<()> where Self: WriteEndian, - for<'a> Self::Args<'a>: Required, { let mut raw: u8 = 0; diff --git a/src/types/sonar_return_magic.rs b/src/types/sonar_return_magic.rs index 4c29609..a83a6f7 100644 --- a/src/types/sonar_return_magic.rs +++ b/src/types/sonar_return_magic.rs @@ -1,4 +1,3 @@ -use binrw::__private::Required; use binrw::meta::{EndianKind, ReadEndian, WriteEndian}; use binrw::{BinRead, BinResult, BinWrite, Endian, Error}; use std::io::{Error as IOError, ErrorKind::InvalidData, Read, Seek, Write}; @@ -38,7 +37,6 @@ impl BinRead for SonarReturnMagic { fn read(reader: &mut R) -> BinResult where Self: ReadEndian, - for<'a> Self::Args<'a>: Required, { let mut raw = [0u8; 3]; let pos = reader.stream_position()?; @@ -70,7 +68,6 @@ impl BinWrite for SonarReturnMagic { fn write(&self, writer: &mut W) -> BinResult<()> where Self: WriteEndian, - for<'a> Self::Args<'a>: Required, { let raw = match *self { Self::IMX => b"IMX", diff --git a/src/types/sonar_return_status.rs b/src/types/sonar_return_status.rs index e3d08b1..1f06971 100644 --- a/src/types/sonar_return_status.rs +++ b/src/types/sonar_return_status.rs @@ -1,4 +1,3 @@ -use binrw::__private::Required; use binrw::meta::{EndianKind, ReadEndian, WriteEndian}; use binrw::{BinRead, BinResult, BinWrite, Endian}; use std::io::{Read, Seek, Write}; @@ -53,7 +52,6 @@ impl BinRead for SonarReturnStatus { fn read(reader: &mut R) -> BinResult where Self: ReadEndian, - for<'a> Self::Args<'a>: Required, { let raw = u8::read(reader)?; @@ -87,7 +85,6 @@ impl BinWrite for SonarReturnStatus { fn write(&self, writer: &mut W) -> BinResult<()> where Self: WriteEndian, - for<'a> Self::Args<'a>: Required, { let mut raw: u8 = 0;