diff options
| author | mo8it <mo8it@proton.me> | 2024-10-17 15:03:43 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-10-17 15:03:43 +0200 |
| commit | 7e2f56f41a89213d3ae60a069402a25b570f0cca (patch) | |
| tree | d10a0d1f54311edda5bea57644f929152e8e7dd2 /src/app_state.rs | |
| parent | e90f5f03f3da639bf3157aec12ebf0cec62ac7ae (diff) | |
Use the default hasher
Diffstat (limited to 'src/app_state.rs')
| -rw-r--r-- | src/app_state.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app_state.rs b/src/app_state.rs index 4007fbc..5979150 100644 --- a/src/app_state.rs +++ b/src/app_state.rs @@ -1,6 +1,7 @@ use anyhow::{bail, Context, Error, Result}; use crossterm::{cursor, terminal, QueueableCommand}; use std::{ + collections::HashSet, env, fs::{File, OpenOptions}, io::{Read, Seek, StdoutLock, Write}, @@ -16,7 +17,6 @@ use std::{ use crate::{ clear_terminal, cmd::CmdRunner, - collections::hash_set_with_capacity, embedded::EMBEDDED_FILES, exercise::{Exercise, RunnableExercise}, info_file::ExerciseInfo, @@ -146,7 +146,7 @@ impl AppState { break 'block StateFileStatus::NotRead; } - let mut done_exercises = hash_set_with_capacity(exercises.len()); + let mut done_exercises = HashSet::with_capacity(exercises.len()); for done_exercise_name in lines { if done_exercise_name.is_empty() { |
