diff --git a/substrate/srml/session/src/lib.rs b/substrate/srml/session/src/lib.rs index 1451b62060..981cc930eb 100644 --- a/substrate/srml/session/src/lib.rs +++ b/substrate/srml/session/src/lib.rs @@ -220,9 +220,7 @@ pub trait SelectInitialValidators { fn select_initial_validators() -> Option>; } -/// Implementation of `SelectInitialValidators` that does nothing. -pub struct AllValidators; -impl SelectInitialValidators for AllValidators { +impl SelectInitialValidators for () { fn select_initial_validators() -> Option> { None } @@ -565,7 +563,7 @@ mod tests { type SessionHandler = TestSessionHandler; type Keys = UintAuthorityId; type Event = (); - type SelectInitialValidators = AllValidators; + type SelectInitialValidators = (); } type System = system::Module;