Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avoid the need for users to add http as an explicit dependency #1554

Merged
merged 1 commit into from Nov 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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