Skip to content

Commit

Permalink
chore: remove unnecessary clone of piece payload (#1494)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien authored and anorth committed Jan 22, 2024
1 parent 9334a87 commit 049b9c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actors/market/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ impl Actor {
let mut sector_deal_ids: Vec<DealID> = vec![];
let mut pieces_ret: Vec<ext::miner::PieceReturn> = vec![];
for piece in &sector.added {
let deal_id: DealID = match deserialize(&piece.payload.clone(), "deal id") {
let deal_id: DealID = match deserialize(&piece.payload, "deal id") {
Ok(v) => v,
Err(e) => {
log::warn!("failed to deserialize deal id {:?}: {}", piece.payload, e);
Expand Down

0 comments on commit 049b9c7

Please sign in to comment.