Skip to content

Commit

Permalink
more unrelated clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffgrunewald committed Jan 3, 2024
1 parent a22788f commit f9faeb4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions iot_verifier/src/reward_share.rs
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ mod test {
for reward in gw_reward_shares {
if let Some(ProtoReward::GatewayReward(gateway_reward)) = reward.reward {
rewards.insert(
gateway_reward.hotspot_key.clone().try_into().unwrap(),
gateway_reward.hotspot_key.clone().into(),
gateway_reward,
);
}
Expand Down Expand Up @@ -744,7 +744,7 @@ mod test {
for reward in gw_reward_shares {
if let Some(ProtoReward::GatewayReward(gateway_reward)) = reward.reward {
rewards.insert(
gateway_reward.hotspot_key.clone().try_into().unwrap(),
gateway_reward.hotspot_key.clone().into(),
gateway_reward,
);
}
Expand Down Expand Up @@ -912,7 +912,7 @@ mod test {
for reward in gw_reward_shares {
if let Some(ProtoReward::GatewayReward(gateway_reward)) = reward.reward {
rewards.insert(
gateway_reward.hotspot_key.clone().try_into().unwrap(),
gateway_reward.hotspot_key.clone().into(),
gateway_reward,
);
}
Expand Down
2 changes: 1 addition & 1 deletion iot_verifier/src/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ mod tests {
assert_eq!(1, included_witnesses.len());
assert_eq!(
InvalidReason::Stale,
excluded_witnesses.get(0).unwrap().invalid_reason
excluded_witnesses.first().unwrap().invalid_reason
);
assert_eq!(
InvalidReason::Duplicate,
Expand Down

0 comments on commit f9faeb4

Please sign in to comment.