mirror of
https://github.com/tokio-rs/axum.git
synced 2025-03-20 22:18:51 +01:00
Don't set extension we never use (#844)
* Remove unused internal helper * Don't set extension we never use
This commit is contained in:
parent
f9a94ca7eb
commit
70e3024068
2 changed files with 0 additions and 5 deletions
|
@ -15,7 +15,3 @@ pub use bytes::Bytes;
|
||||||
|
|
||||||
#[doc(inline)]
|
#[doc(inline)]
|
||||||
pub use axum_core::body::{boxed, BoxBody};
|
pub use axum_core::body::{boxed, BoxBody};
|
||||||
|
|
||||||
pub(crate) fn empty() -> BoxBody {
|
|
||||||
boxed(Empty::new())
|
|
||||||
}
|
|
||||||
|
|
|
@ -421,7 +421,6 @@ where
|
||||||
mut req: Request<B>,
|
mut req: Request<B>,
|
||||||
) -> RouteFuture<B, Infallible> {
|
) -> RouteFuture<B, Infallible> {
|
||||||
let id = *match_.value;
|
let id = *match_.value;
|
||||||
req.extensions_mut().insert(id);
|
|
||||||
|
|
||||||
#[cfg(feature = "matched-path")]
|
#[cfg(feature = "matched-path")]
|
||||||
if let Some(matched_path) = self.node.route_id_to_path.get(&id) {
|
if let Some(matched_path) = self.node.route_id_to_path.get(&id) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue