638: Fixed warning from Rust Analyzer r=perlindgren a=korken89



Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
This commit is contained in:
bors[bot] 2022-05-10 11:39:49 +00:00 committed by GitHub
commit 6896749f7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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" name = "cortex-m-rtic-macros"
readme = "../README.md" readme = "../README.md"
repository = "https://github.com/rtic-rs/cortex-m-rtic" repository = "https://github.com/rtic-rs/cortex-m-rtic"
version = "1.1.1" version = "1.1.2"
[lib] [lib]
proc-macro = true proc-macro = true

View file

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