Skip to content

Commit

Permalink
lintcheck: update logs and do minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaskrgr committed Feb 26, 2021
1 parent 3e1eea6 commit 90cf27e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 22 deletions.
5 changes: 2 additions & 3 deletions clippy_dev/src/lintcheck.rs
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ fn lintcheck_needs_rerun(toml_path: &PathBuf) -> bool {

// if clippys modification time is smaller (older) than the logs mod time, we need to rerun
// lintcheck
dbg!(clippy_modified < logs_modified)
clippy_modified < logs_modified
}

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

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

0 comments on commit 90cf27e

Please sign in to comment.