From a335b7edd283c68ddc136477e731f5ad76ac5a63 Mon Sep 17 00:00:00 2001 From: Benno Zeeman Date: Wed, 4 Dec 2024 11:28:43 +0100 Subject: [PATCH] docs(autonomi): remove unnecessary clone --- autonomi/README.md | 2 +- autonomi/examples/put_and_dir_upload.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/autonomi/README.md b/autonomi/README.md index 8acca182b4..a5ce30a3d1 100644 --- a/autonomi/README.md +++ b/autonomi/README.md @@ -29,7 +29,7 @@ async fn main() -> Result<(), Box> { // Put and fetch data. let data_addr = client - .data_put(Bytes::from("Hello, World"), wallet.clone().into()) + .data_put(Bytes::from("Hello, World"), (&wallet).into()) .await?; let _data_fetched = client.data_get(data_addr).await?; diff --git a/autonomi/examples/put_and_dir_upload.rs b/autonomi/examples/put_and_dir_upload.rs index 51bbccfebc..f90480d101 100644 --- a/autonomi/examples/put_and_dir_upload.rs +++ b/autonomi/examples/put_and_dir_upload.rs @@ -10,7 +10,7 @@ async fn main() -> Result<(), Box> { // Put and fetch data. let data_addr = client - .data_put(Bytes::from("Hello, World"), wallet.clone().into()) + .data_put(Bytes::from("Hello, World"), (&wallet).into()) .await?; let _data_fetched = client.data_get(data_addr).await?;