From 4306b5b691200a4eecbdb36d7d9055892432f667 Mon Sep 17 00:00:00 2001 From: Nadja Reitzenstein Date: Sat, 26 Feb 2022 14:45:17 +0100 Subject: [PATCH] More cleanup. Also, this MR closes #48 --- src/machine.rs | 3 ++- src/main.rs | 5 +---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/machine.rs b/src/machine.rs index c2d9269..86f95a0 100644 --- a/src/machine.rs +++ b/src/machine.rs @@ -296,7 +296,8 @@ impl Inner { } fn replace_state(&self, new_state: MachineState) -> MachineState { - self.db.put(&self.id, &new_state); + // Ignore for now, nothing we can do either way. + let _ = self.db.put(&self.id, &new_state); self.state.replace(new_state) } diff --git a/src/main.rs b/src/main.rs index 4ed00a7..f5453f1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -113,8 +113,6 @@ fn main() { } } - let retval; - // Scope to drop everything before exiting. { // Initialize the logging subsystem first to be able to better document the progress from now @@ -126,10 +124,9 @@ fn main() { info!(log, "Starting"); match maybe(matches, log.clone()) { - Ok(_) => retval = 0, + Ok(_) => {}, Err(e) => { error!(log, "{}", e); - retval = -1; } } drop(guard);