diff options
author | Lars Wirzenius <liw@liw.fi> | 2019-10-04 10:46:03 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2019-10-04 10:46:03 +0300 |
commit | d4177cf1bae2bb078cae536016a9ade5d7c95357 (patch) | |
tree | 9c34de37c939362ba2e2bdda2c439393c510bcf0 /src/map.rs | |
parent | c04ab5b326bbe41a7760ffd893174b046816dfc9 (diff) | |
download | roadmap-d4177cf1bae2bb078cae536016a9ade5d7c95357.tar.gz |
Change: dedends_on to get other step, not its name, as paramter
Diffstat (limited to 'src/map.rs')
-rw-r--r-- | src/map.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) } |