diff options
author | Lars Wirzenius <liw@liw.fi> | 2019-10-04 10:43:44 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2019-10-04 10:43:44 +0300 |
commit | c04ab5b326bbe41a7760ffd893174b046816dfc9 (patch) | |
tree | 0caab9c0ed4116563d434e27764461c208c5d5c6 | |
parent | d3a81e80937582f8eb5212296d68104c182780b8 (diff) | |
download | roadmap-c04ab5b326bbe41a7760ffd893174b046816dfc9.tar.gz |
Refactor: more idiomatic way of creating string from slice
-rw-r--r-- | src/step.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/step.rs b/src/step.rs index 6088400..4012da7 100644 --- a/src/step.rs +++ b/src/step.rs @@ -53,7 +53,7 @@ impl Step { /// name. Steps don't know about other steps, and can't validate /// that the dependency exists, so this always works. pub fn add_dependency(&mut self, name: &str) { - self.depends.push(String::from(name)); + self.depends.push(name.to_owned()); } /// Does this step depend on given other step? |