mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-24 00:00:16 +02: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:
@@ -15,7 +15,3 @@ pub use bytes::Bytes;
|
||||
|
||||
#[doc(inline)]
|
||||
pub use axum_core::body::{boxed, BoxBody};
|
||||
|
||||
pub(crate) fn empty() -> BoxBody {
|
||||
boxed(Empty::new())
|
||||
}
|
||||
|
||||
@@ -421,7 +421,6 @@ where
|
||||
mut req: Request<B>,
|
||||
) -> RouteFuture<B, Infallible> {
|
||||
let id = *match_.value;
|
||||
req.extensions_mut().insert(id);
|
||||
|
||||
#[cfg(feature = "matched-path")]
|
||||
if let Some(matched_path) = self.node.route_id_to_path.get(&id) {
|
||||
|
||||
Reference in New Issue
Block a user