From 2f162e2f09d662e2bcb245000a5514335106fe84 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Thu, 6 Sep 2018 00:26:23 +0200 Subject: remove `#[allow]`s they are no longer required due to rust-lang/rust#52467 --- cortex-m-rt/macros/src/lib.rs | 2 -- 1 file changed, 2 deletions(-) (limited to 'cortex-m-rt/macros/src') diff --git a/cortex-m-rt/macros/src/lib.rs b/cortex-m-rt/macros/src/lib.rs index 7d3c61a..afc7600 100644 --- a/cortex-m-rt/macros/src/lib.rs +++ b/cortex-m-rt/macros/src/lib.rs @@ -118,7 +118,6 @@ pub fn entry(args: TokenStream, input: TokenStream) -> TokenStream { quote!( static mut #ident_: #ty = #expr; - #[allow(non_snake_case, unsafe_code)] let #ident: &'static mut #ty = unsafe { &mut #ident_ }; ) }).collect::>(); @@ -408,7 +407,6 @@ pub fn exception(args: TokenStream, input: TokenStream) -> TokenStream { quote!( static mut #ident_: #ty = #expr; - #[allow(non_snake_case, unsafe_code)] let #ident: &mut #ty = unsafe { &mut #ident_ }; ) }).collect::>(); -- cgit v1.2.3