diff --git a/actix-http/src/h2/service.rs b/actix-http/src/h2/service.rs index 95ff3de26..36f7dc311 100644 --- a/actix-http/src/h2/service.rs +++ b/actix-http/src/h2/service.rs @@ -291,15 +291,11 @@ where type Future = H2ServiceHandlerResponse; fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll> { - self.flow - .borrow_mut() - .service - .poll_ready(cx) - .map_err(|e| { - let e = e.into(); - error!("Service readiness error: {:?}", e); - DispatchError::Service(e) - }) + self.flow.borrow_mut().service.poll_ready(cx).map_err(|e| { + let e = e.into(); + error!("Service readiness error: {:?}", e); + DispatchError::Service(e) + }) } fn call(&mut self, (io, addr): (T, Option)) -> Self::Future { diff --git a/actix-http/src/service.rs b/actix-http/src/service.rs index 392a1426f..6236e9fbe 100644 --- a/actix-http/src/service.rs +++ b/actix-http/src/service.rs @@ -581,7 +581,7 @@ where )), }, - proto => unimplemented!("Unsupported HTTP version: {:?}.", proto) + proto => unimplemented!("Unsupported HTTP version: {:?}.", proto), } } }