From 79daaf0e04ce19564b7a2833fefb07bd07c5605d Mon Sep 17 00:00:00 2001 From: David Pedersen Date: Wed, 29 Jun 2022 22:13:17 +0200 Subject: [PATCH] fix --- axum/src/routing/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/axum/src/routing/mod.rs b/axum/src/routing/mod.rs index 44ba414a..563d27d2 100644 --- a/axum/src/routing/mod.rs +++ b/axum/src/routing/mod.rs @@ -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");