Skip to content

Commit

Permalink
remove unneeded debug derives
Browse files Browse the repository at this point in the history
  • Loading branch information
jqnatividad committed Feb 6, 2023
1 parent 75eac78 commit 32aa19c
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/cmd/apply.rs
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ enum Operations {
Whatlang,
}

#[derive(Deserialize, Debug)]
#[derive(Deserialize)]
struct Args {
arg_column: SelectColumns,
cmd_operations: bool,
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/applydp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ enum Operations {
Upper,
}

#[derive(Deserialize, Debug)]
#[derive(Deserialize)]
struct Args {
arg_column: SelectColumns,
cmd_operations: bool,
Expand Down
4 changes: 2 additions & 2 deletions src/cmd/fetch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ use crate::{
util, CliError, CliResult,
};

#[derive(Deserialize, Debug)]
#[derive(Deserialize)]
struct Args {
flag_url_template: Option<String>,
flag_new_column: Option<String>,
Expand Down Expand Up @@ -293,7 +293,7 @@ impl RedisConfig {
}
}

#[derive(Serialize, Deserialize, Debug, Clone)]
#[derive(Serialize, Deserialize, Clone)]
struct FetchResponse {
response: String,
status_code: u16,
Expand Down
4 changes: 2 additions & 2 deletions src/cmd/fetchpost.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ use crate::{
util, CliError, CliResult,
};

#[derive(Deserialize, Debug)]
#[derive(Deserialize)]
struct Args {
flag_new_column: Option<String>,
flag_jql: Option<String>,
Expand Down Expand Up @@ -281,7 +281,7 @@ impl RedisConfig {
}
}

#[derive(Serialize, Deserialize, Debug, Clone)]
#[derive(Serialize, Deserialize, Clone)]
struct FetchResponse {
response: String,
status_code: u16,
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/safenames.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ enum SafeNameMode {
VerifyVerbosePrettyJSON,
}

#[derive(Serialize, Deserialize, Debug)]
#[derive(Serialize, Deserialize)]
struct SafeNamesStruct {
header_count: usize,
duplicate_count: usize,
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/to.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ use crate::{
};

#[allow(dead_code)]
#[derive(Deserialize, Debug)]
#[derive(Deserialize)]
struct Args {
cmd_postgres: bool,
arg_postgres: Option<String>,
Expand Down
3 changes: 1 addition & 2 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const UTF8_ERROR_MSG: &str = "is not UTF-8 encoded. Use the input command to tra
// file size at which we warn user that a large file has not been indexed
const NO_INDEX_WARNING_FILESIZE: u64 = 100_000_000; // 100MB

#[derive(Clone, Copy, Debug)]
#[derive(Clone, Copy)]
pub struct Delimiter(pub u8);

/// Delimiter represents values that can be passed from the command line that
Expand Down Expand Up @@ -71,7 +71,6 @@ impl<'de> Deserialize<'de> for Delimiter {
}
}

#[derive(Debug)]
pub struct Config {
path: Option<PathBuf>, // None implies <stdin>
idx_path: Option<PathBuf>,
Expand Down
2 changes: 1 addition & 1 deletion src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ fn create_dir_all_threadsafe(path: &Path) -> io::Result<()> {
/// Represents a filename template of the form `"{}.csv"`, where `"{}"` is
/// the splace to insert the part of the filename generated by `qsv`.
#[cfg(any(feature = "full", feature = "lite"))]
#[derive(Clone, Debug)]
#[derive(Clone)]
pub struct FilenameTemplate {
prefix: String,
suffix: String,
Expand Down

0 comments on commit 32aa19c

Please sign in to comment.