Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "signature: use R: CryptoRngCore + ?Sized (#1167)" #1183

Merged
merged 1 commit into from
Jan 6, 2023

Conversation

tarcieri
Copy link
Member

@tarcieri tarcieri commented Jan 6, 2023

This reverts commit b12237e.

As further discussed in #1148, passing a trait object to &mut impl CryptoRngCore is possible by mutably borrowing it, and upstream changes to CryptoRng should eliminate the requirement for the ?Sized bound.

This reverts commit b12237e.

As further discussed in #1148, passing a trait object to
`&mut impl CryptoRngCore` is possible by mutably borrowing it, and
upstream changes to `CryptoRng` should eliminate the requirement for
the `?Sized` bound.
@tarcieri tarcieri merged commit 5671cb6 into master Jan 6, 2023
@tarcieri tarcieri deleted the signature/revert-rng-change branch January 6, 2023 21:29
tarcieri added a commit to RustCrypto/signatures that referenced this pull request Jan 7, 2023
This version moves back to `&mut impl CryptoRngCore` as the type
signature for RNGs.

See RustCrypto/traits#1183
tarcieri added a commit to RustCrypto/signatures that referenced this pull request Jan 7, 2023
This version moves back to `&mut impl CryptoRngCore` as the type
signature for RNGs.

See RustCrypto/traits#1183
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