mirror of
https://github.com/fafhrd91/actix-web
synced 2025-07-01 08:45:10 +02:00
revive commented out tests (#1912)
This commit is contained in:
@ -16,6 +16,7 @@ use actix_http::{
|
||||
Error,
|
||||
};
|
||||
use actix_service::{Service, Transform};
|
||||
use futures_core::ready;
|
||||
use futures_util::future::{ok, Ready};
|
||||
use pin_project::pin_project;
|
||||
|
||||
@ -131,7 +132,7 @@ where
|
||||
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
|
||||
let this = self.project();
|
||||
|
||||
match futures_util::ready!(this.fut.poll(cx)) {
|
||||
match ready!(this.fut.poll(cx)) {
|
||||
Ok(resp) => {
|
||||
let enc = if let Some(enc) = resp.response().get_encoding() {
|
||||
enc
|
||||
|
Reference in New Issue
Block a user