Skip to content

Commit 6909055

Browse files
committed
s/test_dir/test_suite_dir
This should make the code slightly more understandable
1 parent 6b37932 commit 6909055

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clippy_dev/src/bless.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ pub static CARGO_TARGET_DIR: SyncLazy<PathBuf> = SyncLazy::new(|| match env::var
1717
});
1818

1919
pub fn bless() {
20-
let test_dirs = [
20+
let test_suite_dirs = [
2121
clippy_project_root().join("tests").join("ui"),
2222
clippy_project_root().join("tests").join("ui-toml"),
2323
clippy_project_root().join("tests").join("ui-cargo"),
2424
];
25-
for test_dir in &test_dirs {
26-
WalkDir::new(test_dir)
25+
for test_suite_dir in &test_suite_dirs {
26+
WalkDir::new(test_suite_dir)
2727
.into_iter()
2828
.filter_map(Result::ok)
2929
.filter(|f| f.path().extension() == Some(OsStr::new("rs")))
3030
.for_each(|f| {
31-
let test_name = f.path().strip_prefix(test_dir).unwrap();
31+
let test_name = f.path().strip_prefix(test_suite_dir).unwrap();
3232

3333
update_reference_file(f.path().with_extension("stdout"), test_name.with_extension("stdout"));
3434
update_reference_file(f.path().with_extension("stderr"), test_name.with_extension("stderr"));

0 commit comments

Comments
 (0)