Fixing directive position
#![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;
