1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2024-11-08 09:09:17 +01:00

fix progress bar count

This commit is contained in:
danieltinazzi 2023-11-04 17:29:10 +01:00
parent 02b1b5f6ab
commit 3181d9f3f8

@ -362,7 +362,10 @@ fn watch(
.iter()
.filter(|e| !e.looks_done() && !filepath.ends_with(&e.path)),
);
let num_done = exercises.iter().filter(|e| e.looks_done()).count();
let num_done = exercises
.iter()
.filter(|e| e.looks_done() && !filepath.ends_with(&e.path))
.count();
clear_screen();
match verify(
pending_exercises,