diff options
author | 2022-12-15 21:10:44 +0000 | |
---|---|---|
committer | 2022-12-15 21:10:44 +0000 | |
commit | 6c1743b5532a19b0e46a5ea919cd087a33669773 (patch) | |
tree | 554eb5b0ba1f05ba558f1ddda1b8e6805f3e9956 /macros/src | |
parent | a79cc083803d126d90d1bb28af61dc6b168a0d41 (diff) | |
parent | 10d2a5935684fdf32f06b1cc38481314fce5654e (diff) | |
download | rtic-6c1743b5532a19b0e46a5ea919cd087a33669773.tar.gz rtic-6c1743b5532a19b0e46a5ea919cd087a33669773.tar.zst rtic-6c1743b5532a19b0e46a5ea919cd087a33669773.zip |
Merge #668
668: Docs on RTOS r=AfoHT a=korken89
Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
Diffstat (limited to 'macros/src')
-rw-r--r-- | macros/src/check.rs | 2 | ||||
-rw-r--r-- | macros/src/codegen/shared_resources.rs | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/macros/src/check.rs b/macros/src/check.rs index 374fcedd..b0ad6f87 100644 --- a/macros/src/check.rs +++ b/macros/src/check.rs @@ -53,7 +53,7 @@ pub fn app(app: &App, _analysis: &Analysis) -> parse::Result<Extra> { // If not enough tasks and first still is None, may cause // "custom attribute panicked" due to unwrap on None - return Err(parse::Error::new(first.unwrap().span(), &s)); + return Err(parse::Error::new(first.unwrap().span(), s)); } // Check that all exceptions are valid; only exceptions with configurable priorities are diff --git a/macros/src/codegen/shared_resources.rs b/macros/src/codegen/shared_resources.rs index 4a750070..b5dff09d 100644 --- a/macros/src/codegen/shared_resources.rs +++ b/macros/src/codegen/shared_resources.rs @@ -147,6 +147,7 @@ pub fn codegen( None } })) { + #[allow(clippy::or_fun_call)] let v = prio_to_masks.entry(priority - 1).or_insert(Vec::new()); v.push(quote!(#device::Interrupt::#name as u32)); mask_ids.push(quote!(#device::Interrupt::#name as u32)); |