Skip to content

Remove From<T> for Target from pow unit tests module #3160

@tcharding

Description

@tcharding

Currently we implement a couple of From imlps in unit tests for Target, this is strange because it begs the question of why we use the From trait in test code only and not for real.

  • Add a test specific function that is explicitly for converting a test case u64 to a u256 (or Target / Work).
  • Remove the From and Into impls from the tests module

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions