Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: assert maximum bit size when creating a U128 from an integer (#…
…4024) # Description ## Problem\* Resolves <!-- Link to GitHub Issue --> ## Summary\* This PR adds a range check to `U128::from_integer` as this method accepts an arbitrary field and so is unsafe. ## Additional Context ## Documentation\* Check one: - [x] No documentation needed. - [ ] Documentation included in this PR. - [ ] **[Exceptional Case]** Documentation to be submitted in a separate PR. # PR Checklist\* - [x] I have tested the changes locally. - [x] I have formatted the changes with [Prettier](https://prettier.io/) and/or `cargo fmt` on default settings.
- Loading branch information