summaryrefslogtreecommitdiff
path: root/src/map.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/map.rs')
-rw-r--r--src/map.rs10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/map.rs b/src/map.rs
index 874e537..e6a24a9 100644
--- a/src/map.rs
+++ b/src/map.rs
@@ -135,10 +135,7 @@ impl Roadmap {
1 => (),
_ => {
let names: Vec<String> = goals.iter().map(|s| s.name().into()).collect();
- return Err(RoadmapError::ManyGoals {
- count: n,
- names,
- });
+ return Err(RoadmapError::ManyGoals { count: n, names });
}
}
@@ -146,11 +143,12 @@ impl Roadmap {
for step in self.iter() {
for depname in step.dependencies() {
match self.get_step(depname) {
- None =>
+ None => {
return Err(RoadmapError::MissingDep {
name: step.name().into(),
missing: depname.into(),
- }),
+ })
+ }
Some(_) => (),
}
}