From c86b7b45bea3c863718e818ec22dbff0515cb27d Mon Sep 17 00:00:00 2001 From: srburton Date: Thu, 1 Jan 2026 22:23:52 -0300 Subject: [PATCH] devices: irqchip: windows: Fix match pattern for struct variant Adapts the match pattern for IrqChipKind::Kernel using the correct struct variant syntax ({ .. }), as required by the Rust compiler. This ensures compatibility with the current enum definition and avoids error E0533. BUG=Build failed with E0533 error when using IrqChipKind::Kernel as a unit variant TEST=Builds successfully on Windows and Linux --- src/sys/windows.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sys/windows.rs b/src/sys/windows.rs index 5c80c5adee..205298e4ac 100644 --- a/src/sys/windows.rs +++ b/src/sys/windows.rs @@ -2431,7 +2431,7 @@ fn run_config_inner( )?; let mut irq_chip = match irq_chip { - IrqChipKind::Kernel => unimplemented!("Kernel irqchip mode not supported by WHPX"), + IrqChipKind::Kernel {} => unimplemented!("Kernel irqchip mode not supported by WHPX"), IrqChipKind::Split => { if !apic_emulation_supported { panic!(