mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-21 22:04:44 +00:00
Fix lints for Rust 1.63 (#3459)
## Issue Addressed N/A ## Proposed Changes Fix clippy lints for latest rust version 1.63. I have allowed the [derive_partial_eq_without_eq](https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq) lint as satisfying this lint would result in more code that we might not want and I feel it's not required. Happy to fix this lint across lighthouse if required though.
This commit is contained in:
@@ -212,7 +212,7 @@ impl<'a, T: EthSpec, Hot: ItemStore<T>, Cold: ItemStore<T>> RootsIterator<'a, T,
|
||||
(Err(BeaconStateError::SlotOutOfBounds), Err(BeaconStateError::SlotOutOfBounds)) => {
|
||||
// Read a `BeaconState` from the store that has access to prior historical roots.
|
||||
if let Some(beacon_state) =
|
||||
next_historical_root_backtrack_state(&*self.store, &self.beacon_state)
|
||||
next_historical_root_backtrack_state(self.store, &self.beacon_state)
|
||||
.handle_unavailable()?
|
||||
{
|
||||
self.beacon_state = Cow::Owned(beacon_state);
|
||||
|
||||
Reference in New Issue
Block a user