fix Server::new syntax error

This commit is contained in:
2025-06-12 17:47:57 +02:00
parent a48496058c
commit 06a503f67d

View File

@@ -18,7 +18,7 @@ pub struct Server {
impl Server {
const MAX_CONNECTIONS: usize = 256;
pub async fn new<Addr: ToSocketAddrs>(addr: ToSocketAddrs) -> Result<Self> {
pub async fn new<Addr: ToSocketAddrs>(addr: Addr) -> Result<Self> {
let listener = TcpListener::bind(addr).await?;
Ok(Self {