diff options
author | Lars Wirzenius <liw@liw.fi> | 2019-09-19 08:18:33 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2019-09-19 08:18:33 +0300 |
commit | f210b816ba382196ea35b4faa3ebc33f7ab12e5c (patch) | |
tree | af385d9e269d43de5ba64374e705c3bd10ca2384 /src/lib.rs | |
parent | 661ef0b06c372fcfa8db87646053a2c2f53ab9bb (diff) | |
download | roadmap-f210b816ba382196ea35b4faa3ebc33f7ab12e5c.tar.gz |
Change: steps returns lifetime string slices, not strins
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -82,10 +82,10 @@ impl Roadmap { } /// Return list of step names. - pub fn steps(&self) -> Vec<String> { + pub fn steps<'a>(&'a self) -> Vec<&'a str> { let mut names = vec![]; for step in self.steps.iter() { - names.push(step.name().to_string()); + names.push(step.name()); } names } |