clean
This commit is contained in:
parent
55c51c8a0a
commit
b2b2db6ac8
|
@ -284,7 +284,6 @@ impl AccessorySocket {
|
||||||
async fn get_next(&mut self) -> Result<Vec<u8>, HomekitError> {
|
async fn get_next(&mut self) -> Result<Vec<u8>, HomekitError> {
|
||||||
// max packet size + authtag size + associated data size
|
// max packet size + authtag size + associated data size
|
||||||
let mut buf = [0; 1024 + 16 + 2];
|
let mut buf = [0; 1024 + 16 + 2];
|
||||||
// let mut buf = [0; 1536];
|
|
||||||
|
|
||||||
let mut read_num = self.socket.read(&mut buf).await?;
|
let mut read_num = self.socket.read(&mut buf).await?;
|
||||||
let mut tries = 0;
|
let mut tries = 0;
|
||||||
|
|
|
@ -117,12 +117,6 @@ pub trait TlvEncode {
|
||||||
fn encode(&self) -> Vec<u8>;
|
fn encode(&self) -> Vec<u8>;
|
||||||
}
|
}
|
||||||
|
|
||||||
// impl<const N: usize> TlvEncode for &[(u8, Vec<u8>); N] {
|
|
||||||
// fn encode(&self) -> Vec<u8> {
|
|
||||||
// (*self as &[(u8, Vec<u8>)]).encode()
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
impl<T> TlvEncode for T
|
impl<T> TlvEncode for T
|
||||||
where
|
where
|
||||||
T: AsRef<[(u8, Vec<u8>)]>,
|
T: AsRef<[(u8, Vec<u8>)]>,
|
||||||
|
|
Loading…
Reference in a new issue