1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-27 17:52:56 +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 futures;
use actix::prelude::*;
use actix::*;
use actix_web::*;
fn main() {

View File

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

View File

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

View File

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