inverted fields in `hex::Error::InvalidLength`
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 35/100
Research direction
Start at src/hex.rs around line 33 and inspect the InvalidLength comment, Display implementation, and macro impl. Reproduce the downstream asset-id parse case for "aaaa" and compare the expected error wording; done means the actual and expected lengths are reported in the intended order and the comment matches.
Written by the indexing model from the issue text.
Description
I am testing https://github.com/ElementsProject/rust-elements/pull/188 in a downstream lib
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 add54c80ba1821a16b88af59de16009f28379853)
- Dominant language
- Rust
- Stars
- 57
- Forks
- 40
- Avg merge
- 11h 58m
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ElementsProject/rust-elements
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
ElementsProject/rust-elements#290 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
ElementsProject/rust-elements#277 ·
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
ElementsProject/rust-elements#273 · 3 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
ElementsProject/rust-elements#268 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
ElementsProject/rust-elements#262 · 2 comments · 1 reaction ·
All issues in ElementsProject/rust-elements
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
gitbutlerapp/gitbutler#15998 · 1 comment ·
-
bug triage:deciding
Difficulty 1/5 Under an hour Newbie friendliness 88/100
open-telemetry/otel-arrow#4132 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100