mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: Collapse nested if into match arm guards
Do the necessary replacements to satisfy clippy::collapsible_match. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>
This commit is contained in:
committed by
Rob Bradford
parent
f1c33afc8e
commit
3c62fabfc3
@@ -735,6 +735,7 @@ impl Vmm {
|
||||
|
||||
for signal in signals.forever() {
|
||||
match signal {
|
||||
#[allow(clippy::collapsible_match)]
|
||||
SIGTERM | SIGINT => {
|
||||
if exit_evt.write(1).is_err() {
|
||||
// Resetting the terminal is usually done as the VMM exits
|
||||
|
||||
Reference in New Issue
Block a user