Merge into_json_deserialize into into_json.

This commit is contained in:
Jacob Hoffman-Andrews
2020-11-21 15:47:49 -08:00
parent 4cb856196e
commit 271e650662
4 changed files with 43 additions and 50 deletions

View File

@@ -18,7 +18,7 @@ fn agent_set_header() {
.call()
.unwrap();
assert_eq!(resp.status(), 200);
let json = resp.into_json_deserialize::<HttpBin>().unwrap();
let json: HttpBin = resp.into_json().unwrap();
// println!("{:?}", json);
assert_eq!("value", json.headers.get("Header").unwrap());
}