Skip to content

Commit

Permalink
stats: remove unneeded Debug derives
Browse files Browse the repository at this point in the history
  • Loading branch information
jqnatividad committed Aug 12, 2023
1 parent 3eae5b1 commit 2def136
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cmd/stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ use crate::{
};

#[allow(clippy::unsafe_derive_deserialize)]
#[derive(Clone, Deserialize, Debug)]
#[derive(Clone, Deserialize)]
pub struct Args {
pub arg_input: Option<String>,
pub flag_select: SelectColumns,
Expand Down Expand Up @@ -932,7 +932,7 @@ impl Commute for WhichStats {
}
}

#[derive(Clone, Serialize, Deserialize, Debug, PartialEq)]
#[derive(Clone, Serialize, Deserialize, PartialEq)]
pub struct Stats {
typ: FieldType,
sum: Option<TypedSum>,
Expand Down Expand Up @@ -1574,7 +1574,7 @@ impl fmt::Debug for FieldType {

/// `TypedSum` keeps a rolling sum of the data seen.
/// It sums integers until it sees a float, at which point it sums floats.
#[derive(Clone, Default, Serialize, Deserialize, Debug, PartialEq)]
#[derive(Clone, Default, Serialize, Deserialize, PartialEq)]
struct TypedSum {
integer: i64,
float: Option<f64>,
Expand Down Expand Up @@ -1651,7 +1651,7 @@ impl Commute for TypedSum {

/// `TypedMinMax` keeps track of minimum/maximum/range values for each possible type
/// where min/max/range makes sense.
#[derive(Clone, Default, Serialize, Deserialize, Debug, PartialEq)]
#[derive(Clone, Default, Serialize, Deserialize, PartialEq)]
struct TypedMinMax {
strings: MinMax<Vec<u8>>,
str_len: MinMax<usize>,
Expand Down

0 comments on commit 2def136

Please sign in to comment.