Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
theacdutra committed Dec 26, 2023
1 parent e0bcb79 commit 1f09376
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/accessors/bundle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ impl BundleExt for TransitionBundle {
return Ok(false);
}
self.known_transitions
.insert(opid, transition.clone())
.insert(opid, transition)
.expect("same size as input map");
Ok(true)
}
Expand Down
2 changes: 1 addition & 1 deletion src/accessors/merge_reveal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ impl<Seal: ExposedSeal> MergeReveal for Assignments<Seal> {
impl MergeReveal for TransitionBundle {
fn merge_reveal(mut self, other: Self) -> Result<Self, MergeRevealError> {
debug_assert_eq!(self.commitment_id(), other.commitment_id());
if self.input_map.len() < other.known_transitions.len() ||
if self.input_map.len() < other.known_transitions.len() ||
self.known_transitions
.extend(other.known_transitions)
.is_err()
Expand Down
2 changes: 1 addition & 1 deletion src/persistence/hoard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ impl Hoard {

// Update asset tags
self.asset_tags
.insert(contract_id, consignment.asset_tags.clone())?;
.insert(contract_id, consignment.asset_tags)?;

Ok(())
}
Expand Down

0 comments on commit 1f09376

Please sign in to comment.