mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-22 15:17:18 +01:00
fix
This commit is contained in:
parent
014067ebf3
commit
79daaf0e04
1 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
|||
use self::{future::RouteFuture, not_found::NotFound};
|
||||
use crate::{
|
||||
body::{boxed, Body, Bytes, HttpBody},
|
||||
extract::{connect_info::IntoMakeServiceWithConnectInfo, MatchedPath},
|
||||
extract::connect_info::IntoMakeServiceWithConnectInfo,
|
||||
response::{IntoResponse, Redirect, Response},
|
||||
routing::strip_prefix::StripPrefix,
|
||||
util::try_downcast,
|
||||
|
@ -417,7 +417,7 @@ where
|
|||
#[cfg(feature = "matched-path")]
|
||||
if let Some(matched_path) = self.node.route_id_to_path.get(&id) {
|
||||
req.extensions_mut()
|
||||
.insert(MatchedPath(Arc::clone(matched_path)));
|
||||
.insert(crate::extract::MatchedPath(Arc::clone(matched_path)));
|
||||
} else {
|
||||
#[cfg(debug_assertions)]
|
||||
panic!("should always have a matched path for a route id");
|
||||
|
|
Loading…
Reference in a new issue