File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,10 @@ pub trait RngCore: TryRngCore<Error = Infallible> {
5959 fn fill_bytes ( & mut self , dst : & mut [ u8 ] ) ;
6060}
6161
62- impl < R : TryRngCore < Error = Infallible > > RngCore for R {
62+ impl < R > RngCore for R
63+ where
64+ R : TryRngCore < Error = Infallible > + ?Sized ,
65+ {
6366 #[ inline]
6467 fn next_u32 ( & mut self ) -> u32 {
6568 match self . try_next_u32 ( ) {
@@ -88,7 +91,7 @@ impl<R: TryRngCore<Error = Infallible>> RngCore for R {
8891/// It is equivalent to the trait sum <code>[RngCore] + [TryCryptoRng]</code>.
8992pub trait CryptoRng : TryCryptoRng < Error = Infallible > { }
9093
91- impl < R : TryCryptoRng < Error = Infallible > > CryptoRng for R { }
94+ impl < R > CryptoRng for R where R : TryCryptoRng < Error = Infallible > + ? Sized { }
9295
9396/// Base trait for random number generators and random data sources
9497///
You can’t perform that action at this time.
0 commit comments