diff options
author | Axetroy <axetroy.dev@gmail.com> | 2019-12-23 22:59:44 +0800 |
---|---|---|
committer | Ry Dahl <ry@tinyclouds.org> | 2019-12-23 09:59:44 -0500 |
commit | 3bb15ceaeaf5cd349afcb2e2d43374efd420aaef (patch) | |
tree | b169369521f66bbca1c71a96f0059bef6d61fe00 /cli/ops/workers.rs | |
parent | e88c801e76c16d4c0a92702e248cf811038ed4ab (diff) |
Upgrades rust to 1.40.0 (#3542)
Diffstat (limited to 'cli/ops/workers.rs')
-rw-r--r-- | cli/ops/workers.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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) })) }); |