summaryrefslogtreecommitdiff
path: root/src/step.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2019-10-04 10:03:08 +0300
committerLars Wirzenius <liw@liw.fi>2019-10-04 10:03:08 +0300
commitb8ca85eb61a362fd95bbc6c5354d881032da12c4 (patch)
treef6144aa5a3015b6719198d7800205f380088ca33 /src/step.rs
parentba9b4d27d1ba6489b0be9c97a0ebb7739bc8f635 (diff)
downloadroadmap-b8ca85eb61a362fd95bbc6c5354d881032da12c4.tar.gz
Change: make Status copiable, don't pass references
Status is very small, so copying it is just easier than dealing with references.
Diffstat (limited to 'src/step.rs')
-rw-r--r--src/step.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/step.rs b/src/step.rs
index e8d9117..aae69ff 100644
--- a/src/step.rs
+++ b/src/step.rs
@@ -35,8 +35,8 @@ impl Step {
}
/// Return the status of a step.
- pub fn status<'a>(&'a self) -> &Status {
- &self.status
+ pub fn status<'a>(&'a self) -> Status {
+ self.status
}
/// Set the status of a step.