Skip to content

Commit

Permalink
fix: MSRV
Browse files Browse the repository at this point in the history
  • Loading branch information
SabrinaJewson authored and YeungOnion committed Sep 22, 2024
1 parent 9fa3643 commit ac52c63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/distribution/bernoulli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ impl ::rand::distributions::Distribution<bool> for Bernoulli {
#[cfg_attr(docsrs, doc(cfg(feature = "rand")))]
impl ::rand::distributions::Distribution<f64> for Bernoulli {
fn sample<R: ::rand::Rng + ?Sized>(&self, rng: &mut R) -> f64 {
f64::from(rng.sample::<bool, _>(self))
rng.sample::<bool, _>(self) as u8 as f64
}
}

Expand Down

0 comments on commit ac52c63

Please sign in to comment.