Skip to content

Commit 90cf27e

Browse files
committed
lintcheck: update logs and do minor fixes
1 parent 3e1eea6 commit 90cf27e

File tree

2 files changed

+19
-22
lines changed

2 files changed

+19
-22
lines changed

clippy_dev/src/lintcheck.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ fn lintcheck_needs_rerun(toml_path: &PathBuf) -> bool {
471471

472472
// if clippys modification time is smaller (older) than the logs mod time, we need to rerun
473473
// lintcheck
474-
dbg!(clippy_modified < logs_modified)
474+
clippy_modified < logs_modified
475475
}
476476

477477
/// lintchecks `main()` function
@@ -485,7 +485,7 @@ pub fn run(clap_config: &ArgMatches) {
485485

486486
// if the clippy bin is newer than our logs, throw away target dirs to force clippy to
487487
// refresh the logs
488-
if dbg!(lintcheck_needs_rerun(&toml_path)) {
488+
if lintcheck_needs_rerun(&toml_path) {
489489
let shared_target_dir = "target/lintcheck/shared_target_dir";
490490
match std::fs::metadata(&shared_target_dir) {
491491
Ok(metadata) => {
@@ -621,7 +621,6 @@ pub fn run(clap_config: &ArgMatches) {
621621
/// read the previous stats from the lintcheck-log file
622622
fn read_stats_from_file(file_path: &String) -> HashMap<String, usize> {
623623
let file_path = PathBuf::from(file_path);
624-
dbg!(&file_path);
625624
let file_content: String = match std::fs::read_to_string(file_path).ok() {
626625
Some(content) => content,
627626
None => {

0 commit comments

Comments
 (0)