diff options
author | Lars Wirzenius <liw@liw.fi> | 2019-10-03 12:38:24 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2019-10-03 12:38:24 +0300 |
commit | 19773a0959364ef7c54f14049c07b030c443cd1a (patch) | |
tree | e79b7492c5154243a20eb7723d5d00f5a01544e7 /src/parser.rs | |
parent | 972acf21ecbaec19c9280a5dcd33b3cbc27174fb (diff) | |
download | roadmap-19773a0959364ef7c54f14049c07b030c443cd1a.tar.gz |
Change: Roadmap.step_names to return an iterator
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 f5eaf96..8b0dc05 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -176,7 +176,7 @@ second: ) .unwrap(); - let names = roadmap.step_names(); + let names: Vec<&str> = roadmap.step_names().collect(); assert_eq!(names.len(), 2); assert!(names.contains(&"first")); assert!(names.contains(&"second")); |