Remove sp-runtime dependency from sp-phragmen (#5786)

* Remove sp-runtime dependency from sp-phragmen

* Use regular derive(Debug) instead of RuntimeDebug
This commit is contained in:
Stanislav Tkach
2020-04-28 18:21:10 +03:00
committed by GitHub
parent 4fa5941f44
commit d870eb23e1
11 changed files with 35 additions and 33 deletions
+2 -2
View File
@@ -17,7 +17,7 @@
//! Helper methods for phragmen.
use crate::{Assignment, ExtendedBalance, VoteWeight, IdentifierT, StakedAssignment, WithApprovalOf};
use sp_runtime::PerThing;
use sp_arithmetic::PerThing;
use sp_std::prelude::*;
/// Converts a vector of ratio assignments into ones with absolute budget value.
@@ -57,7 +57,7 @@ pub fn to_without_backing<A: IdentifierT>(winners: Vec<WithApprovalOf<A>>) -> Ve
#[cfg(test)]
mod tests {
use super::*;
use sp_runtime::Perbill;
use sp_arithmetic::Perbill;
#[test]
fn into_staked_works() {