inverted fields in `hex::Error::InvalidLength`
还没有人认领这个 Issue。
评估
调研方向
从 src/hex.rs 约第 33 行开始,检查 InvalidLength 注释、Display 实现和宏实现。复现 downstream asset-id 对 "aaaa" 的解析场景,并比较预期的错误措辞;当实际长度和预期长度按预定顺序报告且注释一致时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
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)
- 主要语言
- Rust
- 星标
- 57
- 派生
- 40
- 平均合并
- 2 天 2 小时
- 30 天内合并 PR
- 1
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ElementsProject/rust-elements 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 45/100
ElementsProject/rust-elements#290 · 1 条评论 ·
-
难度 5/5 一周以上 新手友好度 25/100
ElementsProject/rust-elements#277 ·
-
难度 5/5 一周以上 新手友好度 30/100
ElementsProject/rust-elements#273 · 3 条评论 ·
-
难度 5/5 一周以上 新手友好度 35/100
ElementsProject/rust-elements#268 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 52/100
ElementsProject/rust-elements#262 · 2 条评论 · 1 个 reaction ·
查看 ElementsProject/rust-elements 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
TheLarkInn/aipm#2413 ·
-
documentation
难度 1/5 1 小时以内 新手友好度 90/100
alexgorbatchev/simple-ptt#15 ·
-
tooling
难度 2/5 1-3 小时 新手友好度 75/100
-
todo:ticket
难度 2/5 1-3 小时 新手友好度 70/100
-
难度 2/5 1-3 小时 新手友好度 75/100
taikoxyz/taiko-mono#22168 · 1 条评论 ·