Limit the maximum number of exercises to 999

This commit is contained in:
mo8it
2024-10-14 15:57:44 +02:00
parent a675cb5754
commit 990a722852
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -166,7 +166,7 @@ pub fn progress_bar<'a>(
total: u16,
term_width: u16,
) -> io::Result<()> {
debug_assert!(total < 1000);
debug_assert!(total <= 999);
debug_assert!(progress <= total);
const PREFIX: &[u8] = b"Progress: [";