1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-26 18:37:41 +02:00

Use re-exported bytes items from instead of using them directly (#139)

This commit is contained in:
Yuki Okushi
2020-12-01 10:21:56 +09:00
committed by GitHub
parent 699a98493b
commit f970d90894
13 changed files with 9 additions and 14 deletions

View File

@ -8,7 +8,6 @@ use std::pin::Pin;
use std::task;
use std::task::Poll;
use bytes::BytesMut;
use prost::DecodeError as ProtoBufDecodeError;
use prost::EncodeError as ProtoBufEncodeError;
use prost::Message;
@ -16,6 +15,7 @@ use prost::Message;
use actix_web::dev::{HttpResponseBuilder, Payload};
use actix_web::error::{Error, PayloadError, ResponseError};
use actix_web::http::header::{CONTENT_LENGTH, CONTENT_TYPE};
use actix_web::web::BytesMut;
use actix_web::{FromRequest, HttpMessage, HttpRequest, HttpResponse, Responder};
use futures_util::future::{ready, FutureExt, LocalBoxFuture, Ready};
use futures_util::StreamExt;