Skip to content

Commit

Permalink
Use http re-export in docs (#1554)
Browse files Browse the repository at this point in the history
  • Loading branch information
tshepang committed Nov 20, 2022
1 parent 8d2fb36 commit 3ab3e5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion axum-core/src/extract/mod.rs
Expand Up @@ -82,7 +82,7 @@ pub trait FromRequestParts<S>: Sized {
/// use axum::{
/// async_trait,
/// extract::FromRequest,
/// http::Request,
/// http::{self, Request},
/// };
///
/// struct MyExtractor;
Expand Down
3 changes: 1 addition & 2 deletions axum/src/handler/mod.rs
Expand Up @@ -5,8 +5,7 @@
//! Some examples of handlers:
//!
//! ```rust
//! use axum::body::Bytes;
//! use http::StatusCode;
//! use axum::{body::Bytes, http::StatusCode};
//!
//! // Handler that immediately returns an empty `200 OK` response.
//! async fn unit_handler() {}
Expand Down

0 comments on commit 3ab3e5f

Please sign in to comment.