diff options
| author | mo8it <mo8it@proton.me> | 2024-04-17 18:19:15 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-04-17 18:19:28 +0200 |
| commit | b9167e9299bfe7c644cdbc2f6e933873f06b1c3f (patch) | |
| tree | b606985ba549d79ea9d6502f9609c65669c0e122 /src | |
| parent | 28ec0f864a5d041e15c08049a600c1f0e4fefd2e (diff) | |
Remove redundant checks
Diffstat (limited to 'src')
| -rw-r--r-- | src/info_file.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/info_file.rs b/src/info_file.rs index 18e77b9..879609e 100644 --- a/src/info_file.rs +++ b/src/info_file.rs @@ -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) } } |
