diff --git a/gotham/src/extractor/path.rs b/gotham/src/extractor/path.rs index 0cc2f3f3..ba6b7aa6 100644 --- a/gotham/src/extractor/path.rs +++ b/gotham/src/extractor/path.rs @@ -21,7 +21,7 @@ use crate::state::{State, StateData}; /// /// ```rust /// # use hyper::{Body, Response, StatusCode}; -/// # use gotham::state::{FromState, State}; +/// # use gotham::state::State; /// # use gotham::helpers::http::response::create_response; /// # use gotham::router::{build_simple_router, Router}; /// # use gotham::prelude::*; diff --git a/gotham/src/extractor/query_string.rs b/gotham/src/extractor/query_string.rs index 256cb98b..d86520d7 100644 --- a/gotham/src/extractor/query_string.rs +++ b/gotham/src/extractor/query_string.rs @@ -21,7 +21,7 @@ use crate::state::{State, StateData}; /// /// ```rust /// # use hyper::{Body, Response, StatusCode}; -/// # use gotham::state::{FromState, State}; +/// # use gotham::state::State; /// # use gotham::helpers::http::response::create_response; /// # use gotham::router::{build_simple_router, Router}; /// # use gotham::prelude::*; diff --git a/gotham/src/handler/mod.rs b/gotham/src/handler/mod.rs index e3243e80..e6bee826 100644 --- a/gotham/src/handler/mod.rs +++ b/gotham/src/handler/mod.rs @@ -133,7 +133,6 @@ pub type HandlerFuture = dyn Future + Send; /// # /// # use gotham::handler::{Handler, HandlerFuture, NewHandler}; /// # use gotham::state::State; -/// # use gotham::anyhow; /// # /// # fn main() { /// #[derive(Copy, Clone)] @@ -191,7 +190,6 @@ where /// # /// # use gotham::handler::{Handler, HandlerFuture, NewHandler}; /// # use gotham::state::State; -/// # use gotham::anyhow; /// # /// # fn main() { /// #[derive(Copy, Clone)] @@ -227,7 +225,6 @@ where /// # /// # use gotham::handler::{Handler, HandlerFuture, NewHandler}; /// # use gotham::state::State; -/// # use gotham::anyhow; /// # /// # fn main() { /// #[derive(Copy, Clone)] diff --git a/gotham/src/router/builder/single.rs b/gotham/src/router/builder/single.rs index 505f1832..f696857f 100644 --- a/gotham/src/router/builder/single.rs +++ b/gotham/src/router/builder/single.rs @@ -261,7 +261,6 @@ pub trait DefineSingleRoute { /// # use gotham::pipeline::*; /// # use gotham::middleware::session::NewSessionMiddleware; /// # use gotham::test::TestServer; - /// # use gotham::anyhow; /// # /// struct MyNewHandler; /// struct MyHandler; @@ -396,7 +395,7 @@ pub trait DefineSingleRoute { /// /// ```rust /// # use hyper::{Body, Response, StatusCode}; - /// # use gotham::state::{State, FromState}; + /// # use gotham::state::State; /// # use gotham::router::{build_router, Router}; /// # use gotham::prelude::*; /// # use gotham::pipeline::*; @@ -458,7 +457,7 @@ pub trait DefineSingleRoute { /// /// ```rust /// # use hyper::{Body, Response, StatusCode}; - /// # use gotham::state::{State, FromState}; + /// # use gotham::state::State; /// # use gotham::router::{build_router, Router}; /// # use gotham::prelude::*; /// # use gotham::pipeline::*;