Remove needless `None` arm
@@ -263,12 +263,14 @@ impl Server {
// be done in a way that the basic functionality of process
// tracking still works on Windows.
self.reap_services();
- match signals::check_for_signal() {
- Some(SignalEvent::Shutdown) => {
+
+ if let Some(event) = signals::check_for_signal() {
+ match event {
+ SignalEvent::Shutdown => {
self.shutdown();
return Ok(TickState::Exit(0));
}
- Some(SignalEvent::WaitForChild) => {
+ SignalEvent::WaitForChild => {
// We only return Some if we ended up reaping our
// Supervisor; otherwise, we don't need to do anything
// special. If the supervisor exits but reap_zombie_orphans()
@@ -278,11 +280,12 @@ impl Server {
return result;
}
}
- Some(SignalEvent::Passthrough(signal)) => {
+ SignalEvent::Passthrough(signal) => {
self.forward_signal(signal);
}
- None => (),
}
+ }
+
self.handle_message()
}
