Use inline format args (#2232)

This commit is contained in:
Yuri Astrakhan
2023-09-19 06:51:57 +00:00
committed by GitHub
parent a9822ec80b
commit 786329d85d
35 changed files with 72 additions and 83 deletions
@@ -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(),
)