summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-04-18 11:40:54 +0200
committermo8it <mo8it@proton.me>2024-04-18 11:40:54 +0200
commitf04089b8bc724d41dcd26117c85f32328b5eb597 (patch)
treed80cb75810c6a987a7f40ed7c3c60a4822a1fea5 /src
parent2566f9aaf674458f6faff7e8aaf77bb108b7d56c (diff)
Only take a reference
Diffstat (limited to 'src')
-rw-r--r--src/dev/check.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dev/check.rs b/src/dev/check.rs
index d2e5fe1..e95eb3c 100644
--- a/src/dev/check.rs
+++ b/src/dev/check.rs
@@ -79,7 +79,7 @@ fn unexpected_file(path: &Path) -> Error {
anyhow!("Found the file `{}`. Only `README.md` and Rust files related to an exercise in `info.toml` are allowed in the `exercises` directory", path.display())
}
-fn check_exercise_dir_files(info_file_paths: hashbrown::HashSet<PathBuf>) -> Result<()> {
+fn check_exercise_dir_files(info_file_paths: &hashbrown::HashSet<PathBuf>) -> Result<()> {
for entry in read_dir("exercises").context("Failed to open the `exercises` directory")? {
let entry = entry.context("Failed to read the `exercises` directory")?;
@@ -131,7 +131,7 @@ fn check_exercises(info_file: &InfoFile) -> Result<()> {
}
let info_file_paths = check_info_file_exercises(info_file)?;
- check_exercise_dir_files(info_file_paths)?;
+ check_exercise_dir_files(&info_file_paths)?;
Ok(())
}