diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2019-11-07 17:11:15 +0100 |
---|---|---|
committer | Ry Dahl <ry@tinyclouds.org> | 2019-11-07 11:11:15 -0500 |
commit | 25c276055b3dfdcecd77d18a0c6ebfcee531442d (patch) | |
tree | f15f6170b6e9d966a9188f74bfb3e5bec45a3512 /cli/ops/fetch.rs | |
parent | 415d4c2e5236f6d8dfef8865b1665f144c39a019 (diff) |
refactor: remove cli::resources::Resource (#3285)
Diffstat (limited to 'cli/ops/fetch.rs')
-rw-r--r-- | cli/ops/fetch.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/ops/fetch.rs b/cli/ops/fetch.rs index 1d330ce41..143331171 100644 --- a/cli/ops/fetch.rs +++ b/cli/ops/fetch.rs @@ -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 |