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:
Anatol Belski
2026-03-05 23:43:57 +01:00
committed by Rob Bradford
parent f1c33afc8e
commit 3c62fabfc3
2 changed files with 26 additions and 24 deletions
+1
View File
@@ -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