reth icon indicating copy to clipboard operation
reth copied to clipboard

Use associated trait bound for Database Error = ProviderError

Open mattsse opened this issue 1 year ago • 0 comments

Describe the feature

https://github.com/paradigmxyz/reth/blob/8954ffb42333a0966d509ae470558a5d96396dbc/crates/evm/src/execute.rs#L144-L144

ideally we can use something like type Executor<DB: Database<Error : Into<Self::Error>>>: instead.

This currently only works on nightly, but will be stabilized:

https://github.com/rust-lang/rust/issues/52662

Additional context

No response

mattsse avatar May 08 '24 11:05 mattsse