summaryrefslogtreecommitdiff
path: root/cli/ops/workers.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/ops/workers.rs')
-rw-r--r--cli/ops/workers.rs4
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)
}))
});