Skip to content

Commit

Permalink
Update axum paths to 0.8 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
zakstucke committed Feb 6, 2025
1 parent 8f74a6d commit a13b4f6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion integrations/axum/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1694,12 +1694,15 @@ impl AxumPath for Vec<PathSegment> {
match segment {
PathSegment::Static(s) => path.push_str(s),
PathSegment::Param(s) => {
path.push(':');
path.push('{');
path.push_str(s);
path.push('}');
}
PathSegment::Splat(s) => {
path.push('{');
path.push('*');
path.push_str(s);
path.push('}');
}
PathSegment::Unit => {}
PathSegment::OptionalParam(_) => {
Expand Down

0 comments on commit a13b4f6

Please sign in to comment.