diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-03-20 08:46:16 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-03-20 08:46:16 +0200 |
commit | dcbcbd9457d4bd4d21bcf8dbcc9e416fff463d92 (patch) | |
tree | fef50ff7fd2c71e761717c780048bfd29322a87b /src/step.rs | |
parent | 97654c1795dfb9e84792713911475310e4bc1a86 (diff) | |
download | roadmap-dcbcbd9457d4bd4d21bcf8dbcc9e416fff463d92.tar.gz |
Change: make error message for wrong number of goals more helpful
Diffstat (limited to 'src/step.rs')
-rw-r--r-- | src/step.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/step.rs b/src/step.rs index 1ed495b..92b8eec 100644 --- a/src/step.rs +++ b/src/step.rs @@ -1,4 +1,5 @@ use super::Status; +use std::fmt; /// A roadmap step. /// @@ -62,6 +63,12 @@ impl Step { } } +impl fmt::Display for Step { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + write!(f, "{}", self.name) + } +} + #[cfg(test)] mod tests { use super::{Status, Step}; |