Skip to content

Commit

Permalink
remove #[allow]s
Browse files Browse the repository at this point in the history
they are no longer required due to rust-lang/rust#52467
  • Loading branch information
japaric committed Sep 5, 2018
1 parent fbd29fc commit 2f162e2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cortex-m-rt/macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<Vec<_>>();
Expand Down Expand Up @@ -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::<Vec<_>>();
Expand Down

0 comments on commit 2f162e2

Please sign in to comment.