summaryrefslogtreecommitdiff
path: root/src/status.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2019-09-28 11:24:56 +0300
committerLars Wirzenius <liw@liw.fi>2019-09-28 11:36:52 +0300
commitbb237c5552a72efe10de8054c72cfc0f5993cf89 (patch)
tree4678ac1038ed1c993ccbce4f34b433e694968761 /src/status.rs
parent6d4af8bd7fbfa88a7dd3820af2b557fe072a8311 (diff)
downloadroadmap-bb237c5552a72efe10de8054c72cfc0f5993cf89.tar.gz
Refactor: cleanliness, clarity and simplicity, and rustfmt
Diffstat (limited to 'src/status.rs')
-rw-r--r--src/status.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/status.rs b/src/status.rs
index 247023c..e6bac17 100644
--- a/src/status.rs
+++ b/src/status.rs
@@ -5,7 +5,7 @@
/// example, a step is inferred to be blocked if any of it
/// dependencies are not finished.
-#[derive(Clone,Debug,PartialEq)]
+#[derive(Clone, Debug, PartialEq)]
pub enum Status {
Unknown,
Goal,
@@ -41,7 +41,6 @@ impl PartialEq<&Status> for Status {
}
}
-
#[cfg(test)]
mod test {
use super::Status;
@@ -56,10 +55,9 @@ mod test {
assert_eq!(Status::from_text("blocked").unwrap(), Status::Blocked);
}
-
#[test]
fn sad_from_text() {
let x = Status::from_text("x");
assert_eq!(x, None);
- }
+ }
}