Skip to content

Commit

Permalink
fix complie error
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislearn committed Jan 6, 2025
1 parent e3e7a23 commit f6f417e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/core/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,10 @@ impl HyperHandler {
async move {
if let Some(dm) = router.detect(&mut req, &mut path_state).await {
req.params = path_state.params;
req.matched_path = path_state.matched_parts.join("/");
#[cfg(feature = "matched-path")]
{
req.matched_path = path_state.matched_parts.join("/");
}
// Set default status code before service hoops executed.
// We hope all hoops in service can get the correct status code.
let mut ctrl = FlowCtrl::new(
Expand Down

0 comments on commit f6f417e

Please sign in to comment.