mirror of
https://github.com/actix/examples
synced 2025-06-29 10:14:58 +02:00
chore: fmt
This commit is contained in:
@ -1,11 +1,12 @@
|
||||
use std::time::Duration;
|
||||
|
||||
use actix_web::{
|
||||
App, Error, HttpServer,
|
||||
body::MessageBody,
|
||||
dev,
|
||||
middleware::{from_fn, Next},
|
||||
middleware::{Next, from_fn},
|
||||
rt::time,
|
||||
web, App, Error, HttpServer,
|
||||
web,
|
||||
};
|
||||
|
||||
mod read_request_body;
|
||||
|
@ -1,12 +1,13 @@
|
||||
use std::{
|
||||
future::{ready, Ready},
|
||||
future::{Ready, ready},
|
||||
rc::Rc,
|
||||
};
|
||||
|
||||
use actix_http::h1;
|
||||
use actix_web::{
|
||||
Error,
|
||||
dev::{self, Service, ServiceRequest, ServiceResponse, Transform},
|
||||
web, Error,
|
||||
web,
|
||||
};
|
||||
use futures_util::future::LocalBoxFuture;
|
||||
|
||||
|
@ -1,15 +1,15 @@
|
||||
use std::{
|
||||
future::{ready, Future, Ready},
|
||||
future::{Future, Ready, ready},
|
||||
marker::PhantomData,
|
||||
pin::Pin,
|
||||
task::{Context, Poll},
|
||||
};
|
||||
|
||||
use actix_web::{
|
||||
Error,
|
||||
body::{BodySize, MessageBody},
|
||||
dev::{self, Service, ServiceRequest, ServiceResponse, Transform},
|
||||
web::{Bytes, BytesMut},
|
||||
Error,
|
||||
};
|
||||
use pin_project_lite::pin_project;
|
||||
|
||||
|
@ -1,9 +1,10 @@
|
||||
use std::future::{ready, Ready};
|
||||
use std::future::{Ready, ready};
|
||||
|
||||
use actix_web::{
|
||||
Error, HttpResponse,
|
||||
body::EitherBody,
|
||||
dev::{self, Service, ServiceRequest, ServiceResponse, Transform},
|
||||
http, Error, HttpResponse,
|
||||
http,
|
||||
};
|
||||
use futures_util::future::LocalBoxFuture;
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
use std::future::{ready, Ready};
|
||||
use std::future::{Ready, ready};
|
||||
|
||||
use actix_web::{
|
||||
dev::{self, Service, ServiceRequest, ServiceResponse, Transform},
|
||||
Error,
|
||||
dev::{self, Service, ServiceRequest, ServiceResponse, Transform},
|
||||
};
|
||||
use futures_util::future::LocalBoxFuture;
|
||||
|
||||
|
Reference in New Issue
Block a user