summaryrefslogtreecommitdiff
path: root/src/map.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/map.rs')
-rw-r--r--src/map.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map.rs b/src/map.rs
index ab27164..0184fc1 100644
--- a/src/map.rs
+++ b/src/map.rs
@@ -118,7 +118,7 @@ impl Roadmap {
/// Should status be goal? In other words, does any other step
/// depend on this one?
pub fn is_goal(&self, step: &Step) -> bool {
- self.steps.iter().all(|other| !other.depends_on(step.name()))
+ self.steps.iter().all(|other| !other.depends_on(&step))
}