mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-03 00:31:50 +00:00
Rust clippy 1.87 lint fixes (#7471)
Fix clippy lints for `rustc` 1.87 clippy complains about `BeaconChainError` being too large. I went on a bit of a boxing spree because of this. We may instead want to `Box` some of the `BeaconChainError` variants?
This commit is contained in:
@@ -22,7 +22,7 @@ pub struct MerkleProof {
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum GenericMerkleProofValidity<E: EthSpec> {
|
||||
BeaconState(BeaconStateMerkleProofValidity<E>),
|
||||
BeaconState(Box<BeaconStateMerkleProofValidity<E>>),
|
||||
BeaconBlockBody(Box<BeaconBlockBodyMerkleProofValidity<E>>),
|
||||
}
|
||||
|
||||
@@ -47,6 +47,7 @@ impl<E: EthSpec> LoadCase for GenericMerkleProofValidity<E> {
|
||||
|
||||
if suite_name == "BeaconState" {
|
||||
BeaconStateMerkleProofValidity::load_from_dir(path, fork_name)
|
||||
.map(Box::new)
|
||||
.map(GenericMerkleProofValidity::BeaconState)
|
||||
} else if suite_name == "BeaconBlockBody" {
|
||||
BeaconBlockBodyMerkleProofValidity::load_from_dir(path, fork_name)
|
||||
|
||||
Reference in New Issue
Block a user