summaryrefslogtreecommitdiff
path: root/src/step.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/step.rs')
-rw-r--r--src/step.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/step.rs b/src/step.rs
index 4012da7..221b2bd 100644
--- a/src/step.rs
+++ b/src/step.rs
@@ -57,8 +57,8 @@ impl Step {
}
/// Does this step depend on given other step?
- pub fn depends_on(&self, other_name: &str) -> bool {
- self.depends.iter().any(|depname| depname == other_name)
+ pub fn depends_on(&self, other: &Step) -> bool {
+ self.depends.iter().any(|depname| depname == other.name())
}
}