aboutsummaryrefslogtreecommitdiff
path: root/macros
diff options
context:
space:
mode:
authorGravatar bors[bot] <26634292+bors[bot]@users.noreply.github.com> 2022-05-10 11:39:49 +0000
committerGravatar GitHub <noreply@github.com> 2022-05-10 11:39:49 +0000
commit6896749f7b8d35a53e359cf90758e2790ad95b19 (patch)
treea67eb640280541be104b43ba667b7dfff8352eb5 /macros
parente98ddeabebe84307c29c1984a7fe0d2c1903ff63 (diff)
parente5643ee94e91adc50e0ad82a6105eee3cba60a01 (diff)
downloadrtic-6896749f7b8d35a53e359cf90758e2790ad95b19.tar.gz
rtic-6896749f7b8d35a53e359cf90758e2790ad95b19.tar.zst
rtic-6896749f7b8d35a53e359cf90758e2790ad95b19.zip
Merge #638
638: Fixed warning from Rust Analyzer r=perlindgren a=korken89 Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
Diffstat (limited to 'macros')
-rw-r--r--macros/Cargo.toml2
-rw-r--r--macros/src/codegen/shared_resources.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/macros/Cargo.toml b/macros/Cargo.toml
index 8b3bf080..e4f5cc23 100644
--- a/macros/Cargo.toml
+++ b/macros/Cargo.toml
@@ -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
diff --git a/macros/src/codegen/shared_resources.rs b/macros/src/codegen/shared_resources.rs
index f944e3e5..47f8faf0 100644
--- a/macros/src/codegen/shared_resources.rs
+++ b/macros/src/codegen/shared_resources.rs
@@ -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();
));
}