Skip to content

Commit

Permalink
Fix compiler warnings in PR rust-bitcoin#291
Browse files Browse the repository at this point in the history
  • Loading branch information
SarcasticNastik committed May 19, 2022
1 parent f9a5cd1 commit 62a42bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/policy/mod.rs
Expand Up @@ -442,8 +442,8 @@ mod tests {
let descriptor = policy.compile_tr(Some(unspendable_key.clone())).unwrap();

let mut sorted_policy_prob = node_policies
.into_iter()
.zip(node_probabilities.into_iter())
.iter()
.zip(node_probabilities.iter())
.collect::<Vec<_>>();
sorted_policy_prob.sort_by(|a, b| (a.1).partial_cmp(&b.1).unwrap());
let sorted_policies = sorted_policy_prob
Expand Down

0 comments on commit 62a42bc

Please sign in to comment.