Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Refactor: alleviate painful AsHashDB impls with macro (or magic) #9022

Closed
@dvdplm

Description

@dvdplm

In the course of Make HashDB generic changes were made to the HashDB trait that made it impossible to keep the generic impls of AsHashDB we had before. To work around this concrete impls for AsHashDB were added in many places. Find a more elegant way to deal with the issue, e.g. by adding a impl_as_hash_db! macro.

See the NOTE in the code for more details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    F6-refactor 📚Code needs refactoring.M4-core ⛓Core client code / Rust.P7-nicetohave 🐕Issue is worth doing eventually.Q2-easy 💃Can be fixed by copy and pasting from StackOverflow.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions