We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d14595 commit 96301e4Copy full SHA for 96301e4
src/distributions/other.rs
@@ -165,7 +165,7 @@ mod tests {
165
166
#[test]
167
fn test_misc() {
168
- let mut rng: &mut RngCore = &mut ::test::rng(820);
+ let rng: &mut RngCore = &mut ::test::rng(820);
169
170
rng.sample::<char, _>(Uniform);
171
rng.sample::<bool, _>(Uniform);
src/lib.rs
@@ -659,7 +659,7 @@ pub trait Rng: RngCore {
659
}
660
661
662
-impl<R: RngCore> Rng for R {}
+impl<R: RngCore + ?Sized> Rng for R {}
663
664
/// Trait for casting types to byte slices
665
///
0 commit comments