From 740f344c083b1b7063ba3468bac9c28d2d360ff9 Mon Sep 17 00:00:00 2001 From: Albin Hedman Date: Thu, 30 Nov 2023 19:20:30 +0100 Subject: [PATCH] Fix warnings about empty loops --- examples/comp.rs | 1 + examples/comp_w_dac.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/examples/comp.rs b/examples/comp.rs index abfa16ba..cfdcaea2 100644 --- a/examples/comp.rs +++ b/examples/comp.rs @@ -16,6 +16,7 @@ use rt::entry; #[cfg(not(feature = "stm32g474"))] #[entry] fn main() -> ! { + #[allow(clippy::empty_loop)] loop {} // TODO: add support for more devices } diff --git a/examples/comp_w_dac.rs b/examples/comp_w_dac.rs index 5d33d619..63b0f4ec 100644 --- a/examples/comp_w_dac.rs +++ b/examples/comp_w_dac.rs @@ -11,6 +11,7 @@ use rt::entry; #[cfg(not(feature = "stm32g474"))] #[entry] fn main() -> ! { + #[allow(clippy::empty_loop)] loop {} // TODO: add support for more devices }