mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-22 05:52:23 -05:00
fix progress bar count
This commit is contained in:
parent
02b1b5f6ab
commit
3181d9f3f8
1 changed files with 4 additions and 1 deletions
|
@ -362,7 +362,10 @@ fn watch(
|
||||||
.iter()
|
.iter()
|
||||||
.filter(|e| !e.looks_done() && !filepath.ends_with(&e.path)),
|
.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();
|
clear_screen();
|
||||||
match verify(
|
match verify(
|
||||||
pending_exercises,
|
pending_exercises,
|
||||||
|
|
Loading…
Reference in a new issue