use always_ready macro

This commit is contained in:
Ibraheem Ahmed 2021-06-22 23:55:41 -04:00 committed by GitHub
parent 626695db9c
commit f01b2be6f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -140,9 +140,7 @@ impl Route {
/// type Error = actix_web::Error;
/// type Future = LocalBoxFuture<'static, Result<Self::Response, Self::Error>>;
///
/// fn poll_ready(&self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {
/// Poll::Ready(Ok(()))
/// }
/// always_ready!();
///
/// fn call(&self, req: ServiceRequest) -> Self::Future {
/// let (req, _) = req.into_parts();