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

bump to rc.1

This commit is contained in:
Rob Ede
2022-02-02 00:44:58 +00:00
parent 61fc66c5e5
commit c960da6bdb
25 changed files with 122 additions and 369 deletions

View File

@ -35,6 +35,7 @@ struct SomeData {
name: String,
}
#[allow(dead_code)] // it is debug printed
#[derive(Debug, Deserialize)]
struct HttpBinResponse {
args: HashMap<String, String>,
@ -64,6 +65,9 @@ async fn step_x(data: SomeData, client: &Client) -> Result<SomeData, Error> {
}
let body: HttpBinResponse = serde_json::from_slice(&body).unwrap();
println!("{:?}", body);
Ok(body.json)
}