mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 03:27:58 +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.
|
||||
pub struct ConfigValidators;
|
||||
impl<V> SelectInitialValidators<V> for ConfigValidators {
|
||||
impl<V> SelectInitialValidators<V> for () {
|
||||
fn select_initial_validators() -> Option<Vec<V>> {
|
||||
None
|
||||
}
|
||||
|
||||
@@ -139,7 +139,7 @@ impl Trait for Test {
|
||||
type ValidatorIdOf = ConvertInto;
|
||||
type Keys = UintAuthorityId;
|
||||
type Event = ();
|
||||
type SelectInitialValidators = crate::ConfigValidators;
|
||||
type SelectInitialValidators = ();
|
||||
}
|
||||
|
||||
#[cfg(feature = "historical")]
|
||||
|
||||
Reference in New Issue
Block a user