Skip to content

Commit 54a88ef

Browse files
committed
Remove unneeded Debug derivations, p2
1 parent e4638ea commit 54a88ef

File tree

8 files changed

+23
-31
lines changed

8 files changed

+23
-31
lines changed

dev/strings.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use gettextrs::{bind_textdomain_codeset, setlocale, textdomain, LocaleCategory};
1414
use object::{Object, ObjectSection};
1515
use plib::PROJECT_NAME;
1616

17-
#[derive(Debug, Clone, Copy, ValueEnum)]
17+
#[derive(Clone, Copy, ValueEnum)]
1818
enum OffsetFormat {
1919
#[value(name = "d", help = "decimal")]
2020
Decimal,
@@ -24,7 +24,7 @@ enum OffsetFormat {
2424
Hex,
2525
}
2626

27-
#[derive(clap::Args, Clone, Copy, Debug)]
27+
#[derive(clap::Args, Clone, Copy)]
2828
struct OutputOptions {
2929
/// Scan the input files in their entirety
3030
#[arg(short = 'a')]

file/dd.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,12 @@ const CONV_ASCII_EBCDIC: [u8; 256] = [
7171
0xdd, 0xde, 0xdf, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff,
7272
];
7373

74-
#[derive(Debug)]
7574
enum AsciiConv {
7675
Ascii,
7776
EBCDIC,
7877
IBM,
7978
}
8079

81-
#[derive(Debug)]
8280
enum Conversion {
8381
Ascii(AsciiConv),
8482
Lcase,
@@ -89,7 +87,6 @@ enum Conversion {
8987
Sync,
9088
}
9189

92-
#[derive(Debug)]
9390
struct Config {
9491
ifile: String,
9592
ofile: String,

file/find.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use std::path::PathBuf;
1616
use std::{env, fs};
1717
use walkdir::{DirEntry, WalkDir};
1818

19-
#[derive(Debug, Clone)]
19+
#[derive(Clone)]
2020
enum Expr {
2121
And(Box<Expr>),
2222
Or(Box<Expr>),
@@ -38,7 +38,7 @@ enum Expr {
3838
Newer(PathBuf),
3939
}
4040

41-
#[derive(Debug, Clone)]
41+
#[derive(Clone)]
4242
enum FileType {
4343
BlockDevice,
4444
CharDevice,

m4/test-manager/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ struct Args {
1212
fixtures_directory: PathBuf,
1313
}
1414

15-
#[derive(Debug, clap::Subcommand)]
15+
#[derive(clap::Subcommand)]
1616
enum Commands {
1717
UpdateSnapshots(UpdateSnapshots),
1818
}
1919

2020
/// Update the integration test snapshots.
21-
#[derive(Debug, clap::Args)]
21+
#[derive(clap::Args)]
2222
struct UpdateSnapshots {
2323
/// Optionally specify a secific test case name that you want to update, where name is
2424
/// {name}.m4 of the test case file.

text/diff_util/common.rs

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
1-
#[derive(Debug)]
2-
pub struct FormatOptions {
3-
pub ignore_trailing_white_spaces: bool,
4-
pub output_format: OutputFormat,
5-
pub label1: Option<String>,
6-
pub label2: Option<String>,
7-
}
8-
9-
#[derive(Debug)]
10-
#[allow(dead_code)]
11-
pub enum OutputFormat {
12-
Debug,
13-
Default,
14-
Context(usize),
15-
EditScript,
16-
ForwardEditScript,
17-
Unified(usize),
18-
}
1+
pub struct FormatOptions {
2+
pub ignore_trailing_white_spaces: bool,
3+
pub output_format: OutputFormat,
4+
pub label1: Option<String>,
5+
pub label2: Option<String>,
6+
}
7+
8+
#[allow(dead_code)]
9+
pub enum OutputFormat {
10+
Debug,
11+
Default,
12+
Context(usize),
13+
EditScript,
14+
ForwardEditScript,
15+
Unified(usize),
16+
}

text/diff_util/file_data.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ use std::{
77

88
use super::{change::Change, constants::COULD_NOT_UNWRAP_FILENAME};
99

10-
#[derive(Debug)]
1110
pub struct FileData {
1211
path: PathBuf,
1312
lines: Vec<String>,

text/diff_util/file_diff.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ use std::{
2222
path::PathBuf,
2323
};
2424

25-
#[derive(Debug)]
2625
pub struct FileDiff<'a> {
2726
file1: &'a mut FileData,
2827
file2: &'a mut FileData,

text/diff_util/hunks.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use crate::diff_util::constants::NO_NEW_LINE_AT_END_OF_FILE;
22

33
use super::{change::Change, file_data::FileData};
44

5-
#[derive(Clone, Debug)]
5+
#[derive(Clone)]
66
pub struct Hunk {
77
kind: Change,
88
changes: Vec<Change>,
@@ -318,7 +318,6 @@ impl Hunk {
318318
}
319319
}
320320

321-
#[derive(Debug)]
322321
pub struct Hunks {
323322
hunks: Vec<Hunk>,
324323
}

0 commit comments

Comments
 (0)