fix Server::new syntax error
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user