Skip to content

Commit

Permalink
fix: MSRV
Browse files Browse the repository at this point in the history
  • Loading branch information
SabrinaJewson committed Sep 22, 2024
1 parent b97707c commit 3deb714
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

Check warning on line 99 in src/distribution/bernoulli.rs

View check run for this annotation

Codecov / codecov/patch

src/distribution/bernoulli.rs#L99

Added line #L99 was not covered by tests
}
}

Expand Down

0 comments on commit 3deb714

Please sign in to comment.