We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef1e824 commit 2e01bbbCopy full SHA for 2e01bbb
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
@@ -640,7 +640,7 @@ pub trait Rng: RngCore {
640
}
641
642
643
-impl<R: RngCore> Rng for R {}
+impl<R: RngCore + ?Sized> Rng for R {}
644
645
/// Trait for casting types to byte slices
646
///
0 commit comments