1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-12-18 01:33:59 +01:00

do not use actix prelude

This commit is contained in:
Nikolay Kim 2017-10-15 15:10:35 -07:00
parent 955e50313d
commit 94c8aa6a54
4 changed files with 6 additions and 4 deletions

View File

@ -34,7 +34,7 @@ extern crate actix;
extern crate actix_web; extern crate actix_web;
extern crate futures; extern crate futures;
use actix::prelude::*; use actix::*;
use actix_web::*; use actix_web::*;
fn main() { fn main() {

View File

@ -174,8 +174,9 @@ impl<S> ApplicationBuilder<S> where S: 'static {
/// ```rust /// ```rust
/// extern crate actix; /// extern crate actix;
/// extern crate actix_web; /// extern crate actix_web;
///
/// use actix::*;
/// use actix_web::*; /// use actix_web::*;
/// use actix::prelude::*;
/// ///
/// struct MyRoute; /// struct MyRoute;
/// ///

View File

@ -5,7 +5,7 @@ extern crate actix_web;
extern crate tokio_core; extern crate tokio_core;
extern crate env_logger; extern crate env_logger;
use actix::prelude::*; use actix::*;
use actix_web::*; use actix_web::*;
struct MyRoute {req: Option<HttpRequest>} struct MyRoute {req: Option<HttpRequest>}

View File

@ -8,7 +8,8 @@
//! ```rust //! ```rust
//! extern crate actix; //! extern crate actix;
//! extern crate actix_web; //! extern crate actix_web;
//! use actix::prelude::*; //!
//! use actix::*;
//! use actix_web::*; //! use actix_web::*;
//! //!
//! // WebSocket Route //! // WebSocket Route