Skip to content

Commit

Permalink
chore(firehose-client): fix clippy::unnecessary_to_owned warning
Browse files Browse the repository at this point in the history
  • Loading branch information
suchapalaver committed Oct 15, 2024
1 parent ca81440 commit 6258fa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/firehose-client/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ mod tests {

let slot_hash_map = blocks
.iter()
.map(|block| (block.slot, hex::encode(block.root.to_owned())))
.map(|block| (block.slot, hex::encode(&block.root)))
// Use BTreeMap for deterministic order.
.collect::<std::collections::BTreeMap<u64, String>>();

Expand Down

0 comments on commit 6258fa5

Please sign in to comment.