Skip to content

Commit 3107a54

Browse files
Relax Sized bound on Distribution<T> for &D (#1278)
1 parent e97b5b6 commit 3107a54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/distributions/distribution.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ pub trait Distribution<T> {
112112
}
113113
}
114114

115-
impl<'a, T, D: Distribution<T>> Distribution<T> for &'a D {
115+
impl<'a, T, D: Distribution<T> + ?Sized> Distribution<T> for &'a D {
116116
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> T {
117117
(*self).sample(rng)
118118
}

0 commit comments

Comments
 (0)