From 4ec192a471f5e141134fdc5610b4c2959af3827d Mon Sep 17 00:00:00 2001 From: Diggory Hardy Date: Thu, 24 Oct 2024 11:32:36 +0100 Subject: [PATCH] Remove Distribution support for Poisson --- rand_distr/src/poisson.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/rand_distr/src/poisson.rs b/rand_distr/src/poisson.rs index f7757431f4..c89ec54183 100644 --- a/rand_distr/src/poisson.rs +++ b/rand_distr/src/poisson.rs @@ -249,14 +249,6 @@ where } } -impl Distribution for Poisson { - #[inline] - fn sample(&self, rng: &mut R) -> u64 { - // `as` from float to int saturates - as Distribution>::sample(self, rng) as u64 - } -} - #[cfg(test)] mod test { use super::*;