diff options
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -220,9 +220,7 @@ impl Roadmap { fn count_goals(&self) -> usize { self.steps .iter() - .map(|step| { - self.is_goal(step) - }) + .map(|step| self.is_goal(step)) .filter(|b| *b) .count() } |