diff options
| author | datdenkikniet <jcdra1@gmail.com> | 2025-03-22 23:55:32 +0100 |
|---|---|---|
| committer | datdenkikniet <38322042+datdenkikniet@users.noreply.github.com> | 2025-03-23 09:57:48 +0000 |
| commit | 11699b439126744ad918a1c6b90e73cb24da868d (patch) | |
| tree | 02421695d6cab568fb6010fce4369f918a8fe406 /rtic-macros | |
| parent | 5de3ca0aef627f9d4d095e386c3b833d35477685 (diff) | |
rtic: placate clippy for esp32c3
Diffstat (limited to 'rtic-macros')
| -rw-r--r-- | rtic-macros/src/codegen/bindings/esp32c3.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/rtic-macros/src/codegen/bindings/esp32c3.rs b/rtic-macros/src/codegen/bindings/esp32c3.rs index 9c778f9..444f4e3 100644 --- a/rtic-macros/src/codegen/bindings/esp32c3.rs +++ b/rtic-macros/src/codegen/bindings/esp32c3.rs @@ -2,6 +2,7 @@ pub use esp32c3::*; #[cfg(feature = "riscv-esp32c3")] +#[allow(clippy::module_inception)] mod esp32c3 { use crate::{ analyze::Analysis as CodegenAnalysis, @@ -92,7 +93,7 @@ mod esp32c3 { for (&priority, name) in interrupt_ids.chain( app.hardware_tasks .values() - .filter_map(|task| Some((&task.args.priority, &task.args.binds))), + .map(|task| (&task.args.priority, &task.args.binds)), ) { let es = format!( "Maximum priority used by interrupt vector '{name}' is more than supported by hardware" @@ -207,7 +208,7 @@ mod esp32c3 { stmts } - pub fn async_prio_limit(app: &App, analysis: &CodegenAnalysis) -> Vec<TokenStream2> { + pub fn async_prio_limit(_app: &App, analysis: &CodegenAnalysis) -> Vec<TokenStream2> { let max = if let Some(max) = analysis.max_async_prio { quote!(#max) } else { @@ -232,7 +233,7 @@ mod esp32c3 { for (_, name) in interrupt_ids.chain( app.hardware_tasks .values() - .filter_map(|task| Some((&task.args.priority, &task.args.binds))), + .map(|task| (&task.args.priority, &task.args.binds)), ) { if *name == dispatcher_name { let ret = &("interrupt".to_owned() + &curr_cpu_id.to_string()); |
