Skip to content

feat: parse block-size strings - #30

Merged
npmccallum merged 2 commits into
mainfrom
feat/parse-verity-parameters
Nov 20, 2026
Merged

npmccallum merged 2 commits into
mainfrom
feat/parse-verity-parameters

Conversation

@npmccallum

@npmccallum npmccallum commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Allow constrained block sizes to round-trip through standard Display and FromStr traits. Text uses decimal byte counts; parsing delegates power-of-two and range validation to the existing constructor. This lets string-valued metadata use the native block-size type.

No serialization dependency or new value type. The second commit uses the equivalent NonZero::trailing_zeros() operation required by current CI Clippy. Boundary and round-trip tests pass; formatting and diff checks pass. All ten jobs in exact-head CI passed for 7b162bfc069985041b33ba1fad6590e6d6a5323e. Direct independent source review of this head found no issues; the reviewer did not run tests or assess coverage.

@npmccallum
npmccallum force-pushed the feat/parse-verity-parameters branch from 9061a18 to 7b162bf Compare November 20, 2026 16:32
@npmccallum npmccallum changed the title feat: parse verity parameter strings feat: parse block-size strings Nov 20, 2026
Clippy 1.100 rejects extracting the integer before counting bits.
Use the equivalent NonZero method to keep the type changes buildable.
@npmccallum
npmccallum force-pushed the feat/parse-verity-parameters branch from 7b162bf to adbff85 Compare November 20, 2026 16:37
@npmccallum
npmccallum merged commit ead0eb8 into main Nov 20, 2026
@npmccallum
npmccallum deleted the feat/parse-verity-parameters branch November 20, 2026 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant