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

update deps

This commit is contained in:
Nikolay Kim
2019-12-25 20:48:33 +04:00
parent a0812c9b29
commit e8ab9ee7ca
76 changed files with 85 additions and 89 deletions

View File

@ -6,7 +6,7 @@ edition = "2018"
workspace = ".."
[dependencies]
actix-web = "2.0.0-rc"
actix-web = "2.0.0"
actix-rt = "1.0.0"
serde = "1.0"
serde_derive = "1.0"

View File

@ -17,7 +17,7 @@ async fn main() -> std::io::Result<()> {
.configure(app_config)
})
.bind("127.0.0.1:8080")?
.start()
.run()
.await
}
@ -142,9 +142,7 @@ mod tests {
foo: "bar".to_string(),
})
.to_http_request();
let data = state
.app_data::<actix_web::web::Data<AppState>>()
.unwrap();
let data = state.app_data::<actix_web::web::Data<AppState>>().unwrap();
let params = Form(MyParams {
name: "John".to_string(),
});