diff options
| -rw-r--r-- | src/statistics/math.rs | 8 | 
1 files changed, 7 insertions, 1 deletions
| diff --git a/src/statistics/math.rs b/src/statistics/math.rs index 6e7e666..f0b0384 100644 --- a/src/statistics/math.rs +++ b/src/statistics/math.rs @@ -45,7 +45,7 @@ struct Record<X, T, D> {  /// * `T` tag for each data point. Can be arbitrary.  /// * `D` actual data. Must be [`Monoid`](trait.Monoid.html), so that it can be  ///   summed up. -#[derive(Clone, Default)] +#[derive(Clone)]  pub struct RecordFunc<X, T, D> {      data: Vec<Record<X, T, D>>,  } @@ -138,6 +138,12 @@ where      }  } +impl<X: Ord, T, D: Monoid> Default for RecordFunc<X, T, D> { +    fn default() -> Self { +        Self::new() +    } +} +  #[cfg(test)]  mod test {      use super::*; | 
