This commit is contained in:
Alex Janka 2024-02-25 15:41:07 +11:00
parent 55c51c8a0a
commit b2b2db6ac8
2 changed files with 0 additions and 7 deletions

View file

@ -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;

View file

@ -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>)]>,