This commit is contained in:
Rob Ede 2023-07-17 02:13:06 +01:00
parent 4d3c11f4c9
commit 3aa1a6294f
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
3 changed files with 6 additions and 3 deletions

View File

@ -78,7 +78,7 @@ where
Ok(()) Ok(())
} }
Err(err) => { Err(err) => {
error!("can not convert to an async TCP stream: {}", err); error!("can not convert to an async TCP stream: {err}");
Err(()) Err(())
} }
}) })

View File

@ -104,7 +104,7 @@ impl fmt::Debug for MioListener {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match *self { match *self {
MioListener::Tcp(ref lst) => write!(f, "{:?}", lst), MioListener::Tcp(ref lst) => write!(f, "{:?}", lst),
#[cfg(all(unix))] #[cfg(unix)]
MioListener::Uds(ref lst) => write!(f, "{:?}", lst), MioListener::Uds(ref lst) => write!(f, "{:?}", lst),
} }
} }

View File

@ -697,7 +697,10 @@ impl Future for ServerWorker {
match ready!(this.conn_rx.poll_recv(cx)) { match ready!(this.conn_rx.poll_recv(cx)) {
Some(msg) => { Some(msg) => {
let guard = this.counter.guard(); let guard = this.counter.guard();
let _ = this.services[msg.token].service.call((guard, msg.io)); let _ = this.services[msg.token]
.service
.call((guard, msg.io))
.into_inner();
} }
None => return Poll::Ready(()), None => return Poll::Ready(()),
}; };