mirror of
https://github.com/actix/actix-web.git
synced 2025-01-03 05:48:45 +00:00
do not use actix prelude
This commit is contained in:
parent
955e50313d
commit
94c8aa6a54
4 changed files with 6 additions and 4 deletions
|
@ -34,7 +34,7 @@ extern crate actix;
|
|||
extern crate actix_web;
|
||||
extern crate futures;
|
||||
|
||||
use actix::prelude::*;
|
||||
use actix::*;
|
||||
use actix_web::*;
|
||||
|
||||
fn main() {
|
||||
|
|
|
@ -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;
|
||||
///
|
||||
|
|
|
@ -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>}
|
||||
|
|
|
@ -8,7 +8,8 @@
|
|||
//! ```rust
|
||||
//! extern crate actix;
|
||||
//! extern crate actix_web;
|
||||
//! use actix::prelude::*;
|
||||
//!
|
||||
//! use actix::*;
|
||||
//! use actix_web::*;
|
||||
//!
|
||||
//! // WebSocket Route
|
||||
|
|
Loading…
Reference in a new issue