From 2c411a04a946a22968367e6784b1f064a2c5f66e Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Fri, 6 Apr 2018 10:15:06 -0700 Subject: [PATCH] no need for export in doc example --- examples/websocket-chat/src/main.rs | 3 ++- src/extractor.rs | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/websocket-chat/src/main.rs b/examples/websocket-chat/src/main.rs index d9b495c98..ee5c1c45f 100644 --- a/examples/websocket-chat/src/main.rs +++ b/examples/websocket-chat/src/main.rs @@ -17,7 +17,8 @@ extern crate actix_web; use std::time::Instant; use actix::*; -use actix_web::{http, fs, ws, server::HttpServer, App, HttpRequest, HttpResponse, Error}; +use actix_web::server::HttpServer; +use actix_web::{http, fs, ws, App, HttpRequest, HttpResponse, Error}; mod codec; mod server; diff --git a/src/extractor.rs b/src/extractor.rs index 3ada8d5d5..f1ce6bdf9 100644 --- a/src/extractor.rs +++ b/src/extractor.rs @@ -23,7 +23,6 @@ use de::PathDeserializer; /// # extern crate bytes; /// # extern crate actix_web; /// # extern crate futures; -/// #[macro_use] extern crate serde_derive; /// use actix_web::{App, Path, Result, http}; /// /// /// extract path info from "/{username}/{count}/?index.html" url