From 3bb15ceaeaf5cd349afcb2e2d43374efd420aaef Mon Sep 17 00:00:00 2001 From: Axetroy Date: Mon, 23 Dec 2019 22:59:44 +0800 Subject: Upgrades rust to 1.40.0 (#3542) --- cli/ops/workers.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/ops/workers.rs') diff --git a/cli/ops/workers.rs b/cli/ops/workers.rs index 2b4d11e75..467d0bfb2 100644 --- a/cli/ops/workers.rs +++ b/cli/ops/workers.rs @@ -81,7 +81,7 @@ fn op_worker_get_message( debug!("op_worker_get_message"); futures::future::ok(json!({ - "data": maybe_buf.map(|buf| buf.to_owned()) + "data": maybe_buf.map(|buf| buf) })) }); @@ -261,7 +261,7 @@ fn op_host_get_message( .map_err(move |_| -> ErrBox { unimplemented!() }) .and_then(move |maybe_buf| { futures::future::ok(json!({ - "data": maybe_buf.map(|buf| buf.to_owned()) + "data": maybe_buf.map(|buf| buf) })) }); -- cgit v1.2.3