Skip to content

Re-export Infallible - #56

Merged
newpavlov merged 2 commits into
masterfrom
re_export_infallible
Jan 23, 2026
Merged

newpavlov merged 2 commits into
masterfrom
re_export_infallible

Conversation

@newpavlov

@newpavlov newpavlov commented Jan 23, 2026 •

Copy link
Copy Markdown
Member

This makes implementation of infallible TryRngs a bit more convenient by using use rand_core::{TryRng, Infallible};.

@newpavlov
newpavlov requested a review from dhardy January 23, 2026 13:38
Comment thread CHANGELOG.md
- Remove `UnwrapMut` and fns `unwrap_mut`, `unwrap_err`, retaining `UnwrapErr` ([#45], [#53])
- Add error handling to `utils` functions over `TryRng` or via closure ([#45])

### Added

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the changelog wants some organising

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. I plan to open a separate PR for that before cutting the next release candidate.

@newpavlov
newpavlov merged commit efcd06f into master Jan 23, 2026
@newpavlov
newpavlov deleted the re_export_infallible branch January 23, 2026 13:52
takumi-earth pushed a commit to earthlings-dev/rand_core that referenced this pull request Jan 27, 2026
This makes implementation of infallible `TryRng`s a bit more convenient
by using `use rand_core::{TryRng, Infallible};`.
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.

2 participants