Remove redundant checks

This commit is contained in:
mo8it
2024-04-17 18:19:28 +02:00
parent 28ec0f864a
commit b9167e9299
2 changed files with 2 additions and 17 deletions
-8
View File
@@ -64,14 +64,6 @@ impl InfoFile {
bail!("{NO_EXERCISES_ERR}");
}
let mut names_set = hashbrown::HashSet::with_capacity(slf.exercises.len());
for exercise in &slf.exercises {
if !names_set.insert(exercise.name.as_str()) {
bail!("Exercise names must all be unique!")
}
}
drop(names_set);
Ok(slf)
}
}