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)) {