Removed lib structure

This commit is contained in:
2025-12-11 20:44:39 +01:00
parent dcb1259bc7
commit ec91e971c0
13 changed files with 32 additions and 2024 deletions
+1 -6
View File
@@ -1,7 +1,7 @@
use std::{
hash::{Hash, Hasher},
io::{self, Read, Write},
net::{SocketAddr, TcpStream},
net::TcpStream,
};
use anyhow::anyhow;
@@ -346,11 +346,6 @@ impl Client {
pub fn set_uuid(&mut self, uuid: &str) {
self.1 = Some(uuid.to_string())
}
#[deprecated]
pub fn addr(&self) -> crate::Result<SocketAddr> {
Ok(self.0.peer_addr().unwrap_or(self.0.local_addr()?))
}
}
impl Clone for Client {