diff --git a/axum-core/src/extract/mod.rs b/axum-core/src/extract/mod.rs index 2eb37ea4f4..537f347635 100644 --- a/axum-core/src/extract/mod.rs +++ b/axum-core/src/extract/mod.rs @@ -82,7 +82,7 @@ pub trait FromRequestParts: Sized { /// use axum::{ /// async_trait, /// extract::FromRequest, -/// http::Request, +/// http::{self, Request}, /// }; /// /// struct MyExtractor; diff --git a/axum/src/handler/mod.rs b/axum/src/handler/mod.rs index 6a2df1e6d5..a52f09f237 100644 --- a/axum/src/handler/mod.rs +++ b/axum/src/handler/mod.rs @@ -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() {}