Skip to content

Commit

Permalink
Fix warnings introduced in beta/nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
msrd0 committed Apr 12, 2024
1 parent 678f651 commit 8e42df6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion gotham/src/extractor/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::*;
Expand Down
2 changes: 1 addition & 1 deletion gotham/src/extractor/query_string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::*;
Expand Down
3 changes: 0 additions & 3 deletions gotham/src/handler/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ pub type HandlerFuture = dyn Future<Output = HandlerResult> + Send;
/// #
/// # use gotham::handler::{Handler, HandlerFuture, NewHandler};
/// # use gotham::state::State;
/// # use gotham::anyhow;
/// #
/// # fn main() {
/// #[derive(Copy, Clone)]
Expand Down Expand Up @@ -191,7 +190,6 @@ where
/// #
/// # use gotham::handler::{Handler, HandlerFuture, NewHandler};
/// # use gotham::state::State;
/// # use gotham::anyhow;
/// #
/// # fn main() {
/// #[derive(Copy, Clone)]
Expand Down Expand Up @@ -227,7 +225,6 @@ where
/// #
/// # use gotham::handler::{Handler, HandlerFuture, NewHandler};
/// # use gotham::state::State;
/// # use gotham::anyhow;
/// #
/// # fn main() {
/// #[derive(Copy, Clone)]
Expand Down
5 changes: 2 additions & 3 deletions gotham/src/router/builder/single.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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::*;
Expand Down Expand Up @@ -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::*;
Expand Down

0 comments on commit 8e42df6

Please sign in to comment.