chore: add manual clone impl (#16475)

This commit is contained in:
Matthias Seitz
2025-05-26 16:18:32 +02:00
committed by GitHub
parent 52be0031e8
commit 19306aec68

View File

@@ -473,7 +473,7 @@ impl<NetworkT> OpAddOnsBuilder<NetworkT> {
}
/// A regular optimism evm and executor builder.
#[derive(Debug, Clone, Copy)]
#[derive(Debug, Copy)]
#[non_exhaustive]
pub struct OpExecutorBuilder<ChainSpec = OpChainSpec, Primitives = OpPrimitives> {
/// Marker for chain spec type.
@@ -482,6 +482,12 @@ pub struct OpExecutorBuilder<ChainSpec = OpChainSpec, Primitives = OpPrimitives>
_p: PhantomData<Primitives>,
}
impl<ChainSpec, Primitives> Clone for OpExecutorBuilder<ChainSpec, Primitives> {
fn clone(&self) -> Self {
Self::default()
}
}
impl<ChainSpec, Primitives> Default for OpExecutorBuilder<ChainSpec, Primitives> {
fn default() -> Self {
Self { _cs: PhantomData, _p: PhantomData }