Skip to content

Commit

Permalink
Clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
adpaco-aws committed Sep 20, 2024
1 parent 06b97f0 commit 781ba58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/compiletest/src/runtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ impl<'test> TestCx<'test> {
report_cmd
}

fn find_cov_files(&self, folder_path: &PathBuf) -> (PathBuf, Vec<PathBuf>, PathBuf) {
fn find_cov_files(&self, folder_path: &Path) -> (PathBuf, Vec<PathBuf>, PathBuf) {
let folder_name = folder_path.file_name().unwrap();
let kanimap = folder_path.join(format!("{}_kanimap.json", folder_name.to_string_lossy()));

Expand All @@ -470,7 +470,7 @@ impl<'test> TestCx<'test> {
let coverage_info = output_lines.iter().find(|l| l.contains("Coverage results saved to"));
if coverage_info.is_none() {
self.fatal_proc_rec(
&format!("failed to find the path to the coverage results!"),
"failed to find the path to the coverage results",
proc_res,
);
}
Expand Down

0 comments on commit 781ba58

Please sign in to comment.