mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-27 00:00:24 +02:00
chore: Upgrade matchit to 0.8 (#2645)
This commit is contained in:
@@ -92,7 +92,7 @@ pub trait HandlerCallWithExtractors<T, S>: Sized {
|
||||
/// }
|
||||
///
|
||||
/// let app = Router::new().route(
|
||||
/// "/users/:id",
|
||||
/// "/users/{id}",
|
||||
/// get(
|
||||
/// // first try `admin`, if that rejects run `user`, finally falling back
|
||||
/// // to `guest`
|
||||
|
||||
@@ -134,7 +134,7 @@ mod tests {
|
||||
"fallback"
|
||||
}
|
||||
|
||||
let app = Router::new().route("/:id", get(one.or(two).or(three)));
|
||||
let app = Router::new().route("/{id}", get(one.or(two).or(three)));
|
||||
|
||||
let client = TestClient::new(app);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user