Skip to content

Commit

Permalink
chore: Remove redundant clones
Browse files Browse the repository at this point in the history
  • Loading branch information
dariusc93 committed Jul 29, 2024
1 parent 8da21ca commit f1c2a4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/unixfs/cat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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, _)| {
Expand Down
2 changes: 1 addition & 1 deletion src/unixfs/get.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit f1c2a4a

Please sign in to comment.