diff --git a/src/cmd/stats.rs b/src/cmd/stats.rs index 64572a7b..6c850fe2 100644 --- a/src/cmd/stats.rs +++ b/src/cmd/stats.rs @@ -510,7 +510,7 @@ impl Commute for TypedSum { /// TypedMinMax keeps track of minimum/maximum values for each possible type /// where min/max makes sense. -#[derive(Clone)] +#[derive(Clone, Default)] struct TypedMinMax { strings: MinMax>, str_len: MinMax, @@ -586,17 +586,6 @@ impl TypedMinMax { } } -impl Default for TypedMinMax { - fn default() -> TypedMinMax { - TypedMinMax { - strings: Default::default(), - str_len: Default::default(), - integers: Default::default(), - floats: Default::default(), - } - } -} - impl Commute for TypedMinMax { fn merge(&mut self, other: TypedMinMax) { self.strings.merge(other.strings);