summaryrefslogtreecommitdiffstats
path: root/src/log/item.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-12-10 11:59:13 +0100
committerMatthias Beyer <mail@beyermatthias.de>2020-12-10 11:59:13 +0100
commit1d038bae2bc6c7215e5e9849fe418c6431e5adbd (patch)
tree978045760030c5e577a1e4089bf690129505bfcb /src/log/item.rs
parent26cee7066649348546599249a1c1a103d130081b (diff)
Remove feature: State message in "OK" case.
The "OK" case had a state message parameter. This was removed because "OK" does mean that everything went well. No need to have a message here. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/log/item.rs')
-rw-r--r--src/log/item.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/log/item.rs b/src/log/item.rs
index 58fb466..fc2af80 100644
--- a/src/log/item.rs
+++ b/src/log/item.rs
@@ -13,7 +13,7 @@ pub enum LogItem {
/// The end-state of the process
/// Either Ok or Error
- State(Result<String, String>),
+ State(Result<(), String>),
}
impl LogItem {
@@ -22,7 +22,7 @@ impl LogItem {
LogItem::Line(s) => Ok(Display(String::from_utf8(s.to_vec())?)),
LogItem::Progress(u) => Ok(Display(format!("#BUTIDO:PROGRESS:{}", u))),
LogItem::CurrentPhase(p) => Ok(Display(format!("#BUTIDO:PHASE:{}", p))),
- LogItem::State(Ok(s)) => Ok(Display(format!("#BUTIDO:STATE:OK:{}", s))),
+ LogItem::State(Ok(())) => Ok(Display(format!("#BUTIDO:STATE:OK"))),
LogItem::State(Err(s)) => Ok(Display(format!("#BUTIDO:STATE:ERR:{}", s))),
}
}