Remove unconventional unit struct (#3084)

This commit is contained in:
Gavin Wood
2019-07-10 15:36:25 +02:00
committed by Bastian Köcher
parent e9d41feb1c
commit 920221fa02
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -240,8 +240,7 @@ pub trait SelectInitialValidators<ValidatorId> {
} }
/// Implementation of `SelectInitialValidators` that does nothing. /// Implementation of `SelectInitialValidators` that does nothing.
pub struct ConfigValidators; impl<V> SelectInitialValidators<V> for () {
impl<V> SelectInitialValidators<V> for ConfigValidators {
fn select_initial_validators() -> Option<Vec<V>> { fn select_initial_validators() -> Option<Vec<V>> {
None None
} }
+1 -1
View File
@@ -139,7 +139,7 @@ impl Trait for Test {
type ValidatorIdOf = ConvertInto; type ValidatorIdOf = ConvertInto;
type Keys = UintAuthorityId; type Keys = UintAuthorityId;
type Event = (); type Event = ();
type SelectInitialValidators = crate::ConfigValidators; type SelectInitialValidators = ();
} }
#[cfg(feature = "historical")] #[cfg(feature = "historical")]