Skip to content

Commit 029ec12

Browse files
committed
clippy
1 parent fb4a89e commit 029ec12

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

examples/transfer-collection.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,7 @@ impl Node {
8080

8181
let collection_items = collection_items
8282
.iter()
83-
.map(|(name, tag)| {
84-
let hash = tag.hash().clone();
85-
(name.to_string(), hash)
86-
})
83+
.map(|(name, tag)| (name.to_string(), *tag.hash()))
8784
.collect::<Vec<_>>();
8885

8986
let collection = Collection::from_iter(collection_items);
@@ -93,7 +90,7 @@ impl Node {
9390
Ok(*tt.hash())
9491
}
9592

96-
/// retrive an entire collection from a given hash and provider
93+
/// retrieve an entire collection from a given hash and provider
9794
async fn get_collection(&self, hash: Hash, provider: NodeAddr) -> Result<()> {
9895
let req = HashAndFormat::hash_seq(hash);
9996
let addrs = Shuffled::new(vec![provider.node_id]);

0 commit comments

Comments
 (0)