From 990a722852ab22b55db342f93ebe03e6ed122f7f Mon Sep 17 00:00:00 2001 From: mo8it Date: Mon, 14 Oct 2024 15:57:44 +0200 Subject: Limit the maximum number of exercises to 999 --- src/term.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/term.rs') diff --git a/src/term.rs b/src/term.rs index 86909f0..e3bfd7b 100644 --- a/src/term.rs +++ b/src/term.rs @@ -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: ["; -- cgit v1.2.3