refactor: remove cli::resources::Resource (#3285)

This commit is contained in:
Bartek Iwańczuk 2019-11-07 17:11:15 +01:00 committed by Ry Dahl
parent 415d4c2e52
commit 25c276055b
11 changed files with 219 additions and 301 deletions

View file

@ -62,10 +62,10 @@ pub fn op_fetch(
}
let body = res.into_body();
let body_resource = resources::add_reqwest_body(body);
let rid = resources::add_reqwest_body(body);
let json_res = json!({
"bodyRid": body_resource.rid,
"bodyRid": rid,
"status": status.as_u16(),
"statusText": status.canonical_reason().unwrap_or(""),
"headers": res_headers