From 25c276055b3dfdcecd77d18a0c6ebfcee531442d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 7 Nov 2019 17:11:15 +0100 Subject: refactor: remove cli::resources::Resource (#3285) --- cli/ops/fetch.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/ops/fetch.rs') 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 -- cgit v1.2.3