Skip to content

Commit f812d0f

Browse files
committed
align nest and merge a bit
1 parent bacdeff commit f812d0f

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

axum/src/routing/mod.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,11 @@ where
217217
fallback,
218218
} = router;
219219

220-
for (route_id, endpoint) in routes {
221-
let inner_path = &*node.route_id_to_path[&route_id];
220+
for (id, endpoint) in routes {
221+
let inner_path = node
222+
.route_id_to_path
223+
.get(&id)
224+
.expect("no path for route id. This is a bug in axum. Please file an issue");
222225

223226
let path = path_for_nested_route(prefix, inner_path);
224227

0 commit comments

Comments
 (0)