From 2d58dced266140639476e00ad17f4e857d9d660d Mon Sep 17 00:00:00 2001 From: Remo Senekowitsch Date: Mon, 10 Aug 2026 22:30:06 +0200 Subject: [PATCH] optimize loop --- src/dev/check.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dev/check.rs b/src/dev/check.rs index 925f1d86..a9b64316 100644 --- a/src/dev/check.rs +++ b/src/dev/check.rs @@ -134,9 +134,10 @@ fn check_info_file_exercises(info_file: &InfoFile) -> Result> { 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);