warning: variants `Irq` and `Dma` are never constructed --> /reports/os-implementation/K1420-device-safe-detach-local-KO1Cpx/source/kernel/tests/os/../../../os-device-registry/src/lib.rs:133:5 | 131 | pub enum ResourceKind { | ------------ variants in this enum 132 | Mmio, 133 | Irq, | ^^^ 134 | Dma, | ^^^ | = note: `ResourceKind` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default warning: method `device_count` is never used --> /reports/os-implementation/K1420-device-safe-detach-local-KO1Cpx/source/kernel/tests/os/../../../os-device-registry/src/lib.rs:188:18 | 183 | impl ResourceRegistry { | ----------------------------------------------------------- method in this implementation ... 188 | pub const fn device_count(&self) -> usize { self.devices.live_count() } | ^^^^^^^^^^^^ warning: 2 warnings emitted