1
0
mirror of https://github.com/actix/examples synced 2025-06-28 18:00:37 +02:00

Fix clippy warnings (#168)

This commit is contained in:
Yuki Okushi
2019-09-05 00:04:57 +09:00
committed by GitHub
parent bb639d5fe3
commit f232b6c684
18 changed files with 41 additions and 46 deletions

View File

@ -17,7 +17,7 @@ struct Index;
fn index(query: web::Query<HashMap<String, String>>) -> Result<HttpResponse> {
let s = if let Some(name) = query.get("name") {
UserTemplate {
name: name,
name,
text: "Welcome!",
}
.render()