Skip to content

Commit ff35b3e

Browse files
code refactoring
1 parent 457e75e commit ff35b3e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

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)