diff options
author | Lars Wirzenius <liw@liw.fi> | 2019-10-04 09:56:14 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2019-10-04 09:56:14 +0300 |
commit | 256e3de75458d015b3af75260022436e89e0190c (patch) | |
tree | 0074c86aaa453059868e7d3b47247f2774965cd5 /src/parser.rs | |
parent | 10214e0295d72c88cd61085da67b9fc0f01e9728 (diff) | |
download | roadmap-256e3de75458d015b3af75260022436e89e0190c.tar.gz |
Change: pass in step, push it to vector, instead of ref and cloning
Diffstat (limited to 'src/parser.rs')
-rw-r--r-- | src/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.rs b/src/parser.rs index ac917eb..cb1c5ce 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -17,7 +17,7 @@ pub fn from_yaml(yaml: &str) -> Result<Roadmap, Box<dyn Error>> { for (name, value) in map { let step = step_from_value(&name, &value)?; - roadmap.add_step(&step); + roadmap.add_step(step); } validate(&roadmap)?; |