mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-22 23:11:08 +00:00
Remove unconventional unit struct (#3084)
This commit is contained in:
committed by
Bastian Köcher
parent
e9d41feb1c
commit
920221fa02
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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")]
|
||||||
|
|||||||
Reference in New Issue
Block a user