From f1c2a4a48df70c5c1b78cc74989fbdc432470e6d Mon Sep 17 00:00:00 2001 From: Darius Clark Date: Sun, 28 Jul 2024 20:43:46 -0400 Subject: [PATCH] chore: Remove redundant clones --- src/unixfs/cat.rs | 2 +- src/unixfs/get.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/unixfs/cat.rs b/src/unixfs/cat.rs index d3ae785d9..fc9b34ab9 100644 --- a/src/unixfs/cat.rs +++ b/src/unixfs/cat.rs @@ -168,7 +168,7 @@ impl Stream for UnixfsCat { // metadata. To get to it the user needs to create a Visitor over the first block. let block = match starting_point { StartingPoint::Left(path) => dag - ._resolve(path.clone(), true, &providers, local_only, timeout) + ._resolve(path, true, &providers, local_only, timeout) .await .map_err(TraversalFailed::Resolving) .and_then(|(resolved, _)| { diff --git a/src/unixfs/get.rs b/src/unixfs/get.rs index 26152cfa9..ec2659aec 100644 --- a/src/unixfs/get.rs +++ b/src/unixfs/get.rs @@ -133,7 +133,7 @@ impl Stream for UnixfsGet { }; let block = match dag - ._resolve(path.clone(), true, &providers, local_only, timeout) + ._resolve(path, true, &providers, local_only, timeout) .await .map_err(TraversalFailed::Resolving) .and_then(|(resolved, _)| resolved.into_unixfs_block().map_err(TraversalFailed::Path)) {