Skip to content

Commit

Permalink
docs(autonomi): remove unnecessary clone
Browse files Browse the repository at this point in the history
  • Loading branch information
b-zee committed Dec 4, 2024
1 parent cf613d3 commit a335b7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion autonomi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {

// 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?;

Expand Down
2 changes: 1 addition & 1 deletion autonomi/examples/put_and_dir_upload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {

// 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?;

Expand Down

0 comments on commit a335b7e

Please sign in to comment.