mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-22 00:00:17 +02:00
Use inline format args (#2232)
This commit is contained in:
@@ -22,7 +22,7 @@ fn app() -> Router {
|
||||
}
|
||||
|
||||
async fn handler(Query(params): Query<Params>) -> String {
|
||||
format!("{:?}", params)
|
||||
format!("{params:?}")
|
||||
}
|
||||
|
||||
/// See the tests below for which combinations of `foo` and `bar` result in
|
||||
@@ -107,7 +107,7 @@ mod tests {
|
||||
let body = app()
|
||||
.oneshot(
|
||||
Request::builder()
|
||||
.uri(format!("/?{}", query))
|
||||
.uri(format!("/?{query}"))
|
||||
.body(Body::empty())
|
||||
.unwrap(),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user