Fixed warning from Rust Analyzer

This commit is contained in:
Emil Fresk 2022-05-10 13:38:23 +02:00
parent e98ddeabeb
commit e5643ee94e
2 changed files with 3 additions and 3 deletions

View file

@ -12,7 +12,7 @@ license = "MIT OR Apache-2.0"
name = "cortex-m-rtic-macros"
readme = "../README.md"
repository = "https://github.com/rtic-rs/cortex-m-rtic"
version = "1.1.1"
version = "1.1.2"
[lib]
proc-macro = true

View file

@ -162,14 +162,14 @@ pub fn codegen(
let masks_name = util::priority_masks_ident();
mod_app.push(quote!(
#[doc(hidden)]
#[allow(non_camel_case_types)]
#[allow(non_upper_case_globals)]
const #masks_name: [u32; 3] = [#(#mask_arr),*];
));
if uses_exceptions_with_resources {
mod_app.push(quote!(
#[doc(hidden)]
#[allow(non_camel_case_types)]
#[allow(non_upper_case_globals)]
const __rtic_internal_V6_ERROR: () = rtic::export::v6_panic();
));
}