optimize loop

This commit is contained in:
Remo Senekowitsch 2026-08-10 22:30:06 +02:00
parent c114fb3bbb
commit 2d58dced26
No known key found for this signature in database

View File

@ -134,9 +134,10 @@ fn check_info_file_exercises(info_file: &InfoFile) -> Result<HashSet<PathBuf>> {
file_buf.clear();
let path = PathBuf::from(path);
let parent = path.parent().unwrap();
for input_file in &exercise_info.input_files {
paths.insert(path.parent().unwrap().join(input_file));
paths.insert(parent.join(input_file));
}
paths.insert(path);