Skip to content

Commit 7f13881

Browse files
Reverted LintCheckConfig changes
1 parent 0b0ac83 commit 7f13881

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

lintcheck/src/config.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::path::PathBuf;
44

55
#[derive(Parser, Clone, Debug)]
66
#[command(args_conflicts_with_subcommands = true)]
7-
pub(crate) struct LintCheckConfig {
7+
pub(crate) struct LintcheckConfig {
88
/// Number of threads to use (default: all unless --fix or --recursive)
99
#[clap(
1010
long = "jobs",
@@ -87,9 +87,9 @@ impl OutputFormat {
8787
}
8888
}
8989

90-
impl LintCheckConfig {
90+
impl LintcheckConfig {
9191
pub fn new() -> Self {
92-
let mut config = LintCheckConfig::parse();
92+
let mut config = LintcheckConfig::parse();
9393

9494
// for the path where we save the lint results, get the filename without extension (so for
9595
// wasd.toml, use "wasd"...)

lintcheck/src/main.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ mod output;
2828
mod popular_crates;
2929
mod recursive;
3030

31-
use crate::config::{Commands, LintCheckConfig, OutputFormat};
31+
use crate::config::{Commands, LintcheckConfig, OutputFormat};
3232
use crate::recursive::LintcheckServer;
3333

3434
use std::env::consts::EXE_SUFFIX;
@@ -66,7 +66,7 @@ impl Crate {
6666
clippy_driver_path: &Path,
6767
target_dir_index: &AtomicUsize,
6868
total_crates_to_lint: usize,
69-
config: &LintCheckConfig,
69+
config: &LintcheckConfig,
7070
lint_levels_args: &[String],
7171
server: &Option<LintcheckServer>,
7272
) -> Vec<ClippyCheckOutput> {
@@ -257,7 +257,7 @@ fn main() {
257257
std::process::exit(3);
258258
}
259259

260-
let config = LintCheckConfig::new();
260+
let config = LintcheckConfig::new();
261261

262262
match config.subcommand {
263263
Some(Commands::Diff { old, new, truncate }) => json::diff(&old, &new, truncate),
@@ -267,7 +267,7 @@ fn main() {
267267
}
268268

269269
#[allow(clippy::too_many_lines)]
270-
fn lintcheck(config: LintCheckConfig) {
270+
fn lintcheck(config: LintcheckConfig) {
271271
let clippy_ver = build_clippy();
272272
let clippy_driver_path = fs::canonicalize(format!("target/debug/clippy-driver{EXE_SUFFIX}")).unwrap();
273273

lintcheck/src/output.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use std::fs;
66
use std::path::Path;
77
use std::process::ExitStatus;
88

9-
use crate::config::{LintCheckConfig, OutputFormat};
9+
use crate::config::{LintcheckConfig, OutputFormat};
1010

1111
/// A single emitted output from clippy being executed on a crate. It may either be a
1212
/// `ClippyWarning`, or a `RustcIce` caused by a panic within clippy. A crate may have many
@@ -130,7 +130,7 @@ pub fn summarize_and_print_changes(
130130
warnings: &[ClippyWarning],
131131
ices: &[RustcIce],
132132
clippy_ver: String,
133-
config: &LintCheckConfig,
133+
config: &LintcheckConfig,
134134
) -> String {
135135
// generate some stats
136136
let (stats_formatted, new_stats) = gather_stats(warnings);

0 commit comments

Comments
 (0)