From 84e31ef03640e279f787b3bb79c66258c50b935e Mon Sep 17 00:00:00 2001 From: Ryan Summers Date: Tue, 10 Nov 2020 15:16:37 +0100 Subject: [PATCH] Fixing directive position --- src/main.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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;