Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
kianenigma committed Mar 12, 2020
1 parent 1e4291c commit 918e58e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions primitives/phragmen/src/reduce.rs
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,7 @@ fn reduce_all<A: IdentifierT>(assignments: &mut Vec<StakedAssignment<A>>) -> u32
let common_count = trailing_common(&voter_root_path, &target_root_path);

// because roots are the same.
#[cfg(feature = "std")]
debug_assert_eq!(
target_root_path.last().unwrap(),
voter_root_path.last().unwrap()
Expand All @@ -421,7 +422,9 @@ fn reduce_all<A: IdentifierT>(assignments: &mut Vec<StakedAssignment<A>>) -> u32
.cloned(),
)
.collect::<Vec<NodeRef<A>>>();

// a cycle's length shall always be multiple of two.
#[cfg(feature = "std")]
debug_assert_eq!(cycle.len() % 2, 0);

// find minimum of cycle.
Expand Down

0 comments on commit 918e58e

Please sign in to comment.