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);