Skip to content

Commit

Permalink
Fix compile error in release mode (#1517)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpdrsn committed Nov 9, 2022
1 parent 1d6a96e commit 028cac4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion axum/CHANGELOG.md
Expand Up @@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

# Unreleased

- None.
- **fixed:** Fix compile error in release mode ([#1517])

[#1517]: https://github.com/tokio-rs/axum/pull/1517

# 0.6.0-rc.3 (8. November, 2022)

Expand Down
2 changes: 2 additions & 0 deletions axum/src/extract/matched_path.rs
Expand Up @@ -135,6 +135,8 @@ pub(crate) fn set_matched_path_for_request(
} else {
#[cfg(debug_assertions)]
panic!("should always have a matched path for a route id");
#[cfg(not(debug_assertions))]
return;
};

let matched_path = append_nested_matched_path(matched_path, extensions);
Expand Down

0 comments on commit 028cac4

Please sign in to comment.