mirror of
https://github.com/sigp/lighthouse.git
synced 2026-07-04 13:24:39 +00:00
Remove unnecessary trait bounds
This commit is contained in:
@@ -55,7 +55,7 @@ where
|
|||||||
impl<L, E> BeaconChainTypes for CommonTypes<L, E>
|
impl<L, E> BeaconChainTypes for CommonTypes<L, E>
|
||||||
where
|
where
|
||||||
L: LmdGhost<MemoryStore, E> + 'static,
|
L: LmdGhost<MemoryStore, E> + 'static,
|
||||||
E: EthSpec + 'static,
|
E: EthSpec,
|
||||||
{
|
{
|
||||||
type Store = MemoryStore;
|
type Store = MemoryStore;
|
||||||
type SlotClock = TestingSlotClock;
|
type SlotClock = TestingSlotClock;
|
||||||
@@ -70,7 +70,7 @@ where
|
|||||||
pub struct BeaconChainHarness<L, E>
|
pub struct BeaconChainHarness<L, E>
|
||||||
where
|
where
|
||||||
L: LmdGhost<MemoryStore, E> + 'static,
|
L: LmdGhost<MemoryStore, E> + 'static,
|
||||||
E: EthSpec + 'static,
|
E: EthSpec,
|
||||||
{
|
{
|
||||||
pub chain: BeaconChain<CommonTypes<L, E>>,
|
pub chain: BeaconChain<CommonTypes<L, E>>,
|
||||||
pub keypairs: Vec<Keypair>,
|
pub keypairs: Vec<Keypair>,
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ pub struct ClientType<S: Store, E: EthSpec> {
|
|||||||
impl<S, E> BeaconChainTypes for ClientType<S, E>
|
impl<S, E> BeaconChainTypes for ClientType<S, E>
|
||||||
where
|
where
|
||||||
S: Store + 'static,
|
S: Store + 'static,
|
||||||
E: EthSpec + 'static + Clone,
|
E: EthSpec,
|
||||||
{
|
{
|
||||||
type Store = S;
|
type Store = S;
|
||||||
type SlotClock = SystemTimeSlotClock;
|
type SlotClock = SystemTimeSlotClock;
|
||||||
|
|||||||
Reference in New Issue
Block a user