Update the router log truncator for new axum syntax.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2025-08-03 00:30:56 +00:00
parent 44b60050b3
commit fa8ad1d629

View File

@@ -227,6 +227,6 @@ fn request_path_str<T>(request: &http::Request<T>) -> &str {
fn truncated_matched_path(path: &MatchedPath) -> &str {
path.as_str()
.rsplit_once(':')
.rsplit_once('{')
.map_or(path.as_str(), |path| path.0.strip_suffix('/').unwrap_or(path.0))
}