Skip to content

Commit e4638ea

Browse files
committed
Remove unneeded Debug derivations, p1
1 parent 35b957e commit e4638ea

File tree

12 files changed

+22
-27
lines changed

12 files changed

+22
-27
lines changed

dev/ar.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use std::os::unix::ffi::{OsStrExt, OsStringExt};
1616
use std::os::unix::fs::MetadataExt;
1717
use std::path::Path;
1818

19-
#[derive(clap::Args, Debug)]
19+
#[derive(clap::Args)]
2020
#[group(required = false, multiple = false)]
2121
struct InsertArgs {
2222
/// Insert the files after the specified member
@@ -28,7 +28,7 @@ struct InsertArgs {
2828
insert_before: bool,
2929
}
3030

31-
#[derive(clap::Args, Debug)]
31+
#[derive(clap::Args)]
3232
struct DeleteArgs {
3333
/// Give verbose output
3434
#[arg(short = 'v')]
@@ -38,15 +38,15 @@ struct DeleteArgs {
3838
files: Vec<OsString>,
3939
}
4040

41-
#[derive(clap::Args, Debug)]
41+
#[derive(clap::Args)]
4242
struct MoveArgs {
4343
#[command(flatten)]
4444
insert_args: InsertArgs,
4545

4646
files: Vec<OsString>,
4747
}
4848

49-
#[derive(clap::Args, Debug)]
49+
#[derive(clap::Args)]
5050
struct PrintArgs {
5151
/// Give verbose output
5252
#[arg(short = 'v')]
@@ -60,7 +60,7 @@ struct PrintArgs {
6060
files: Vec<OsString>,
6161
}
6262

63-
#[derive(clap::Args, Debug)]
63+
#[derive(clap::Args)]
6464
struct QuickAppendArgs {
6565
/// Suppress archive creation diagnostics
6666
#[arg(short = 'c')]
@@ -74,7 +74,7 @@ struct QuickAppendArgs {
7474
files: Vec<String>,
7575
}
7676

77-
#[derive(clap::Args, Debug)]
77+
#[derive(clap::Args)]
7878
struct ReplaceArgs {
7979
/// Suppress archive creation diagnostics
8080
#[arg(short = 'c')]
@@ -94,7 +94,7 @@ struct ReplaceArgs {
9494
files: Vec<OsString>,
9595
}
9696

97-
#[derive(clap::Args, Debug)]
97+
#[derive(clap::Args)]
9898
struct ListArgs {
9999
/// Give verbose output
100100
#[arg(short = 'v')]
@@ -108,7 +108,7 @@ struct ListArgs {
108108
files: Vec<OsString>,
109109
}
110110

111-
#[derive(clap::Args, Debug)]
111+
#[derive(clap::Args)]
112112
struct ExtractArgs {
113113
/// Give verbose output
114114
#[arg(short = 'v')]
@@ -130,7 +130,7 @@ struct ExtractArgs {
130130
files: Vec<OsString>,
131131
}
132132

133-
#[derive(Subcommand, Debug)]
133+
#[derive(Subcommand)]
134134
enum Commands {
135135
/// Delete one or more files from the archive
136136
#[command(name = "-d")]

dev/nm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use plib::PROJECT_NAME;
2222
use std::collections::HashMap;
2323
use std::fs;
2424

25-
#[derive(Debug, ValueEnum, Clone)]
25+
#[derive(ValueEnum, Clone)]
2626
enum OutputType {
2727
D,
2828
O,

plib/src/utmpx.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
use crate::platform::{self, endutxent, getutxent, setutxent};
1111
use std::ffi::CStr;
1212

13-
#[derive(Debug)]
1413
pub struct Utmpx {
1514
pub user: String,
1615
pub id: String,

text/csplit.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,12 @@ struct Args {
4545
operands: Vec<String>,
4646
}
4747

48-
#[derive(Debug)]
4948
enum Operand {
5049
Rx(Regex, isize, bool),
5150
LineNum(usize),
5251
Repeat(usize),
5352
}
5453

55-
#[derive(Debug)]
5654
struct SplitOps {
5755
ops: Vec<Operand>,
5856
}

text/cut.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use plib::PROJECT_NAME;
1515
use std::path::PathBuf;
1616

1717
/// Cut - cut out selected fields of each line of a file
18-
#[derive(Parser, Debug, Clone)]
18+
#[derive(Parser, Clone)]
1919
#[command(version, about)]
2020
struct Args {
2121
/// Cut based on a list of bytes
@@ -79,7 +79,7 @@ fn validate_args(args: &Args) -> Result<(), String> {
7979
Ok(())
8080
}
8181

82-
#[derive(Clone, Debug)]
82+
#[derive(Clone)]
8383
enum ParseVariat {
8484
Bytes(Vec<(i32, i32)>),
8585
Characters(Vec<(i32, i32)>),

text/diff.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ use gettextrs::{bind_textdomain_codeset, setlocale, textdomain, LocaleCategory};
2828
use plib::PROJECT_NAME;
2929

3030
/// diff - compare two files
31-
#[derive(Parser, Debug, Clone)]
31+
#[derive(Parser, Clone)]
3232
#[command(version, about)]
3333
struct Args {
3434
/// Cause EOL whitespace to be treated as blanks

text/fold.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use std::path::PathBuf;
1616
const TABSTOP: usize = 8;
1717

1818
/// fold - filter for folding lines
19-
#[derive(Parser, Debug, Clone)]
19+
#[derive(Parser, Clone)]
2020
#[command(version, about)]
2121
struct Args {
2222
/// Count width in bytes rather than column positions.

text/nl.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ struct Args {
9393
file: Option<PathBuf>,
9494
}
9595

96-
#[derive(Debug, Clone)]
96+
#[derive(Clone)]
9797
enum LineNumberingStyle {
9898
All,
9999
NonEmpty,
@@ -137,7 +137,7 @@ impl std::fmt::Display for LineNumberingStyle {
137137
}
138138
}
139139

140-
#[derive(Debug, Clone, ValueEnum)]
140+
#[derive(Clone, ValueEnum)]
141141
enum NumberFormat {
142142
Ln,
143143
Rn,

text/pr_util/args.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ fn parse_separator(s: &str) -> Result<char, String> {
259259

260260
macro_rules! impl_char_and_number {
261261
($t:tt, $option:expr, $default_chr:expr, $default_num:expr) => {
262-
#[derive(Debug, Clone)]
262+
#[derive(Clone)]
263263
pub struct $t {
264264
chr: char,
265265
num: usize,

text/tail.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use std::time::Duration;
1414
///
1515
/// The `SignedIsize` struct is a simple wrapper around the `isize` type, designed to parse
1616
/// a string into an `isize` value that defaults to negative if no explicit sign is provided.
17-
#[derive(Debug, Clone)]
17+
#[derive(Clone)]
1818
struct SignedIsize(isize);
1919

2020
impl FromStr for SignedIsize {

0 commit comments

Comments
 (0)