Skip to content

Commit 00cf5fc

Browse files
committed
Remove Redundant Trait Bound (#4169)
I realized this is redundant while reasoning about how the `store` is implemented given the [definition of `ItemStore`](https://github.com/sigp/lighthouse/blob/v4.0.1/beacon_node/store/src/lib.rs#L107) ```rust pub trait ItemStore<E: EthSpec>: KeyValueStore<E> + Sync + Send + Sized + 'static { ... } ```
1 parent 0e2e23e commit 00cf5fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

beacon_node/store/src/reconstruct.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Implementation of historic state reconstruction (given complete block history).
22
use crate::hot_cold_store::{HotColdDB, HotColdDBError};
3-
use crate::{Error, ItemStore, KeyValueStore};
3+
use crate::{Error, ItemStore};
44
use itertools::{process_results, Itertools};
55
use slog::info;
66
use state_processing::{
@@ -13,8 +13,8 @@ use types::{EthSpec, Hash256};
1313
impl<E, Hot, Cold> HotColdDB<E, Hot, Cold>
1414
where
1515
E: EthSpec,
16-
Hot: KeyValueStore<E> + ItemStore<E>,
17-
Cold: KeyValueStore<E> + ItemStore<E>,
16+
Hot: ItemStore<E>,
17+
Cold: ItemStore<E>,
1818
{
1919
pub fn reconstruct_historic_states(self: &Arc<Self>) -> Result<(), Error> {
2020
let mut anchor = if let Some(anchor) = self.get_anchor_info() {

0 commit comments

Comments
 (0)