Remove axum::prelude (#195)

This commit is contained in:
Florian Thelliez
2021-08-18 00:04:15 +02:00
committed by GitHub
parent f083c3e97e
commit d9a06ef14b
43 changed files with 529 additions and 171 deletions
+10 -3
View File
@@ -1,6 +1,6 @@
use crate::{
extract::{has_content_type, rejection::*, take_body, FromRequest, RequestParts},
prelude::response::IntoResponse,
response::IntoResponse,
};
use async_trait::async_trait;
use bytes::Bytes;
@@ -27,7 +27,12 @@ use tower::BoxError;
/// # Extractor example
///
/// ```rust,no_run
/// use axum::prelude::*;
/// use axum::{
/// extract,
/// handler::post,
/// route,
/// routing::RoutingDsl
/// };
/// use serde::Deserialize;
///
/// #[derive(Deserialize)]
@@ -53,8 +58,10 @@ use tower::BoxError;
///
/// ```
/// use axum::{
/// prelude::*,
/// extract::Path,
/// handler::get,
/// route,
/// routing::RoutingDsl,
/// Json,
/// };
/// use serde::Serialize;