diff --git a/src/main.rs b/src/main.rs index f453a49..642bd70 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,9 @@ #![deny(warnings)] #![allow(clippy::missing_safety_doc)] + +// Deprecation warnings are temporarily allowed as the HAL DMA goes through updates. +#![allow(deprecated)] + #![no_std] #![no_main] #![cfg_attr(feature = "nightly", feature(asm))] @@ -18,9 +22,6 @@ fn panic(_info: &core::panic::PanicInfo) -> ! { } } -// Deprecation warnings are temporarily allowed as the HAL DMA goes through updates. -#![allow(deprecated)] - #[cfg(feature = "semihosting")] extern crate panic_semihosting;