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:
parent
955e50313d
commit
94c8aa6a54
@ -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() {
|
||||||
|
@ -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;
|
||||||
///
|
///
|
||||||
|
@ -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>}
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user