We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 719a357 commit e29ab7fCopy full SHA for e29ab7f
src/math/average.rs
@@ -19,7 +19,6 @@ fn sum<T: Num + Copy>(sequence: Vec<T>) -> T {
19
sequence.iter().fold(T::zero(), |acc, x| acc + *x)
20
}
21
22
-#[allow(dead_code)]
23
fn product<T: Num + Copy + One + FromPrimitive + ToPrimitive>(sequence: &[T]) -> Option<f64> {
24
if sequence.is_empty() {
25
None
0 commit comments