code cleanup (#2206)

This commit is contained in:
Xiliang Chen
2019-04-05 03:55:55 +13:00
committed by Gav Wood
parent acaf1fe625
commit cb7a8161f5
2 changed files with 5 additions and 7 deletions
+1 -3
View File
@@ -413,9 +413,7 @@ type NegativeImbalanceOf<T> = <<T as Trait>::Currency as Currency<<T as system::
pub trait Trait: system::Trait + session::Trait {
/// The staking balance.
type Currency:
Currency<Self::AccountId> +
LockableCurrency<Self::AccountId, Moment=Self::BlockNumber>;
type Currency: LockableCurrency<Self::AccountId, Moment=Self::BlockNumber>;
/// Convert a balance into a number used for election calculation.
/// This must fit into a `u64` but is allowed to be sensibly lossy.