Skip to content

Commit

Permalink
Remove an unnecessary clone. (#14659)
Browse files Browse the repository at this point in the history
  • Loading branch information
grao1991 authored Sep 18, 2024
1 parent ecfa130 commit 3b73588
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions third_party/move/tools/move-resource-viewer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -476,8 +476,8 @@ impl<V: CompiledModuleView> MoveValueAnnotator<V> {
values
.iter()
.zip(tys)
.zip(field_names.iter())
.map(|((v, ty), n)| self.annotate_value(v, ty, limit).map(|v| (n.clone(), v)))
.zip(field_names)
.map(|((v, ty), n)| self.annotate_value(v, ty, limit).map(|v| (n, v)))
.collect::<anyhow::Result<Vec<_>>>()
};

Expand Down

0 comments on commit 3b73588

Please sign in to comment.