diff options
| author | Remo Senekowitsch <remo@buenzli.dev> | 2024-08-08 01:23:58 +0200 |
|---|---|---|
| committer | Remo Senekowitsch <remo@buenzli.dev> | 2024-08-08 11:12:17 +0200 |
| commit | dc0ffbe16eb5ecc591422fe225ebb58f17b0e231 (patch) | |
| tree | f3be38c538be03aebb16685ec463e2458cc2c717 /src/app_state.rs | |
| parent | 8df66f79918168617da9709c0edcfeb3ca0e53c8 (diff) | |
Replace hashbrown with ahash
hashbrown is already used in the standard library, but we want the
improved performance of the different hash algorithm.
Using ahash directly conveys this intent more clearly.
Diffstat (limited to 'src/app_state.rs')
| -rw-r--r-- | src/app_state.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/app_state.rs b/src/app_state.rs index 8e43c57..ac45bfc 100644 --- a/src/app_state.rs +++ b/src/app_state.rs @@ -1,3 +1,4 @@ +use ahash::{HashSet, HashSetExt}; use anyhow::{bail, Context, Error, Result}; use std::{ fs::{self, File}, @@ -69,7 +70,7 @@ impl AppState { return StateFileStatus::NotRead; } - let mut done_exercises = hashbrown::HashSet::with_capacity(self.exercises.len()); + let mut done_exercises = HashSet::with_capacity(self.exercises.len()); for done_exerise_name in lines { if done_exerise_name.is_empty() { |
