From 96301e45285e50ac3de370da80fcc577c4345d65 Mon Sep 17 00:00:00 2001 From: Diggory Hardy Date: Wed, 21 Mar 2018 11:59:39 +0000 Subject: [PATCH] Rng: impl for unsized RngCore --- src/distributions/other.rs | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/distributions/other.rs b/src/distributions/other.rs index 3d797cf6392..084354d4e71 100644 --- a/src/distributions/other.rs +++ b/src/distributions/other.rs @@ -165,7 +165,7 @@ mod tests { #[test] fn test_misc() { - let mut rng: &mut RngCore = &mut ::test::rng(820); + let rng: &mut RngCore = &mut ::test::rng(820); rng.sample::(Uniform); rng.sample::(Uniform); diff --git a/src/lib.rs b/src/lib.rs index 84b90e6bbcc..37ef5f27129 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -659,7 +659,7 @@ pub trait Rng: RngCore { } } -impl Rng for R {} +impl Rng for R {} /// Trait for casting types to byte slices ///