We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6cfc9c commit 308d8b7Copy full SHA for 308d8b7
src/policy/mod.rs
@@ -442,8 +442,8 @@ mod tests {
442
let descriptor = policy.compile_tr(Some(unspendable_key.clone())).unwrap();
443
444
let mut sorted_policy_prob = node_policies
445
- .into_iter()
446
- .zip(node_probabilities.into_iter())
+ .iter()
+ .zip(node_probabilities.iter())
447
.collect::<Vec<_>>();
448
sorted_policy_prob.sort_by(|a, b| (a.1).partial_cmp(&b.1).unwrap());
449
let sorted_policies = sorted_policy_prob
0 commit comments