From 81f4e12a2797f351be01934a2a6b80919fb74dcd Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Mon, 26 Mar 2018 23:29:53 -0700 Subject: [PATCH] fix doc string test --- src/route.rs | 2 +- src/with.rs | 2 +- src/ws/mod.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/route.rs b/src/route.rs index a5dd1c43..83879bce 100644 --- a/src/route.rs +++ b/src/route.rs @@ -119,7 +119,7 @@ impl Route { /// # extern crate futures; /// #[macro_use] extern crate serde_derive; /// use actix_web::*; - /// use actix_web::{with, Path, HttpRequestExtractor}; + /// use actix_web::Path; /// /// #[derive(Deserialize)] /// struct Info { diff --git a/src/with.rs b/src/with.rs index 8e1f839f..b0cb0290 100644 --- a/src/with.rs +++ b/src/with.rs @@ -37,7 +37,7 @@ impl WithHandler for F } } -pub fn with(h: H) -> With +pub(crate) fn with(h: H) -> With where H: WithHandler, D: HttpRequestExtractor, T: DeserializeOwned, diff --git a/src/ws/mod.rs b/src/ws/mod.rs index bcce1001..9b7ad8fe 100644 --- a/src/ws/mod.rs +++ b/src/ws/mod.rs @@ -24,7 +24,7 @@ //! } //! //! // Handler for ws::Message messages -//! impl StreamHandler for Ws { +//! impl StreamHandler for Ws { //! //! fn handle(&mut self, msg: ws::Message, ctx: &mut Self::Context) { //! match msg {