summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2019-10-04 10:43:44 +0300
committerLars Wirzenius <liw@liw.fi>2019-10-04 10:43:44 +0300
commitc04ab5b326bbe41a7760ffd893174b046816dfc9 (patch)
tree0caab9c0ed4116563d434e27764461c208c5d5c6
parentd3a81e80937582f8eb5212296d68104c182780b8 (diff)
downloadroadmap-c04ab5b326bbe41a7760ffd893174b046816dfc9.tar.gz
Refactor: more idiomatic way of creating string from slice
-rw-r--r--src/step.rs2
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?