Skip to content

Commit 8e5fd6d

Browse files
committed
run rustfmt for ci
1 parent 703b1bb commit 8e5fd6d

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/lib.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
use numpy::{IntoPyArray, PyArray1, PyReadonlyArray1};
5252
use ordered_float::NotNan;
5353
use pyo3::prelude::*;
54-
use pyo3::{types::PyModule, Bound};
54+
use pyo3::{Bound, types::PyModule};
5555
use rayon::prelude::*;
5656
use std::cmp::Ordering;
5757
use std::cmp::Reverse;
@@ -506,11 +506,7 @@ fn ced(
506506
cnt += 1;
507507
}
508508
}
509-
if cnt == 0 {
510-
f64::NAN
511-
} else {
512-
sum / cnt as f64
513-
}
509+
if cnt == 0 { f64::NAN } else { sum / cnt as f64 }
514510
});
515511
Ok(val)
516512
}

0 commit comments

Comments
 (0)