Skip to content

Commit

Permalink
Merge branch 'kiz-serde-phragmen' of github.com:paritytech/substrate …
Browse files Browse the repository at this point in the history
…into kiz-serde-phragmen
  • Loading branch information
kianenigma committed Nov 1, 2019
2 parents 28a7fdd + 40bc910 commit 79bec3b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core/phragmen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
#![cfg_attr(not(feature = "std"), no_std)]

#[cfg(feature = "std")]
use serde::{Serialize, Deserialize};
use rstd::{prelude::*, collections::btree_map::BTreeMap};
use sr_primitives::RuntimeDebug;
use sr_primitives::{helpers_128bit::multiply_by_rational, Perbill, Rational128};
Expand Down Expand Up @@ -118,7 +116,7 @@ pub struct PhragmenResult<AccountId> {
/// This, at the current version, resembles the `Exposure` defined in the staking SRML module, yet
/// they do not necessarily have to be the same.
#[derive(Default, RuntimeDebug)]
#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
#[cfg_attr(feature = "std", derive(serde::Serialize, serde::Deserialize))]
pub struct Support<AccountId> {
/// The amount of support as the effect of self-vote.
pub own: ExtendedBalance,
Expand Down

0 comments on commit 79bec3b

Please sign in to comment.