Skip to content

Commit

Permalink
fix: removing redundant object cloning
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedtadde committed Sep 1, 2023
1 parent e445ebb commit a84a19d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ impl<H: BuildHasher> HashRing<H> {
storage
.get_node_for_partition(partition_id)
.and_then(|node| {
String::from_utf8(node.clone())
String::from_utf8(node)
.ok()
.and_then(|s| s.parse::<N>().ok())
})
Expand Down

0 comments on commit a84a19d

Please sign in to comment.