mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-18 05:18:30 +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:
@@ -49,7 +49,7 @@ pub enum EngineGetBlobsOutput<E: EthSpec> {
|
||||
#[derive(Debug)]
|
||||
pub enum FetchEngineBlobError {
|
||||
BeaconStateError(BeaconStateError),
|
||||
BeaconChainError(BeaconChainError),
|
||||
BeaconChainError(Box<BeaconChainError>),
|
||||
BlobProcessingError(BlockError),
|
||||
BlobSidecarError(BlobSidecarError),
|
||||
DataColumnSidecarError(DataColumnSidecarError),
|
||||
@@ -320,7 +320,7 @@ async fn compute_and_publish_data_columns<T: BeaconChainTypes>(
|
||||
"compute_and_publish_data_columns",
|
||||
)
|
||||
.await
|
||||
.map_err(FetchEngineBlobError::BeaconChainError)
|
||||
.map_err(|e| FetchEngineBlobError::BeaconChainError(Box::new(e)))
|
||||
.and_then(|r| r)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user