Use trim_ascii instead of trim

This commit is contained in:
mo8it
2024-08-02 16:28:05 +02:00
parent 1468206052
commit 5016c7cf7c
4 changed files with 6 additions and 7 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ fn check_info_file_exercises(info_file: &InfoFile) -> Result<hashbrown::HashSet<
}
}
if exercise_info.hint.trim().is_empty() {
if exercise_info.hint.trim_ascii().is_empty() {
bail!("The exercise `{name}` has an empty hint. Please provide a hint or at least tell the user why a hint isn't needed for this exercise");
}