Skip to content

Commit 2f2ae89

Browse files
fmt + clippy
1 parent 3089d14 commit 2f2ae89

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

rand_distr/tests/cdf.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,9 @@ fn binomial_cdf(k: i64, p: f64, n: u64) -> f64 {
168168
let q = 1.0 - p;
169169

170170
let ln_beta_ab = a.ln_beta(b);
171-
172-
let reg_incomplete_beta = q.inc_beta(a, b, ln_beta_ab);
173171

174-
return reg_incomplete_beta;
175-
}
172+
q.inc_beta(a, b, ln_beta_ab)
173+
}
176174

177175
#[test]
178176
fn binomial() {

0 commit comments

Comments
 (0)