Update the router log truncator for new axum syntax.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk committed 2025-08-03 00:53:53 +00:00
1 parent 44b60050b3
commit fa8ad1d629
1 file changed
+1 -1
+1 -1
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))
}