Skip to content

inverted fields in hex::Error::InvalidLength #189

Description

@RCasatta

I am testing #188 in a downstream lib

/// Tried to parse fixed-length hash from a string with the wrong type (expected, got).

I think the expected, got comment is wrong and the values used in the Display implementation are inverted.

I say so by looking at the macro impl after in a downstream lib I have this test failing to parse "aaaa" as asset id with

  left: "bad hex string length 64 (expected 4)"
 right: "bad hex string length 4 (expected 64)"

(the test was working with add54c8)

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