mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-19 06:15:45 +01:00
Even more cleanup
This commit is contained in:
parent
5c3cedf69a
commit
858320cbfc
6 changed files with 7 additions and 123 deletions
|
|
@ -76,7 +76,7 @@ pub fn codegen(app: &App, analysis: &Analysis) -> CodegenResult {
|
|||
|
||||
// let locals_pat = locals_pat.iter();
|
||||
|
||||
let user_init_return = quote! {#shared, #local, #name::Monotonics};
|
||||
let user_init_return = quote! {#shared, #local};
|
||||
|
||||
let user_init = quote!(
|
||||
#(#attrs)*
|
||||
|
|
@ -99,9 +99,8 @@ pub fn codegen(app: &App, analysis: &Analysis) -> CodegenResult {
|
|||
mod_app = Some(constructor);
|
||||
}
|
||||
|
||||
// let locals_new = locals_new.iter();
|
||||
let call_init = quote! {
|
||||
let (shared_resources, local_resources, mut monotonics) = #name(#name::Context::new(core.into()));
|
||||
let (shared_resources, local_resources) = #name(#name::Context::new(core.into()));
|
||||
};
|
||||
|
||||
root_init.push(module::codegen(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue