From aaf190e1b9dfa858516079cab2b6d34139b4c12d Mon Sep 17 00:00:00 2001 From: "Demi M. Obenour" Date: Mon, 18 May 2020 19:20:18 -0400 Subject: [PATCH] Fix compilation errors and remove useless lifetimes --- src/frame/staking.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/frame/staking.rs b/src/frame/staking.rs index d442021f33..9d46a51e23 100644 --- a/src/frame/staking.rs +++ b/src/frame/staking.rs @@ -96,13 +96,11 @@ impl Default for RewardDestination { /// Preference of what happens regarding validation. #[derive(PartialEq, Eq, Clone, Encode, Decode, RuntimeDebug)] -pub struct ValidatorPrefs { +pub struct ValidatorPrefs { /// Reward that validator takes up-front; only the rest is split between themselves and /// nominators. #[codec(compact)] pub commission: Perbill, - /// Runtime marker - pub _r: PhantomData, } impl Default for ValidatorPrefs { @@ -289,11 +287,11 @@ pub struct ActiveEraStore { /// - Write: Nominators, Validators /// # #[derive(Clone, Debug, PartialEq, Call, Encode)] -pub struct ValidateCall<'a, T: Staking> { +pub struct ValidateCall { /// Runtime marker. pub _runtime: PhantomData, /// Validation preferences. - pub prefs: &'a ValidatorPrefs, + pub prefs: ValidatorPrefs, } /// Declare the desire to nominate `targets` for the origin controller.