mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-19 06:15:45 +01:00
Removed Priority, simplified lifetime handling
This commit is contained in:
parent
53f3d397e7
commit
714020a624
15 changed files with 99 additions and 236 deletions
|
|
@ -91,8 +91,7 @@ pub fn codegen(app: &App, analysis: &Analysis) -> CodegenResult {
|
|||
|
||||
// `${task}Locals`
|
||||
if !init.args.local_resources.is_empty() {
|
||||
let (item, constructor) =
|
||||
local_resources_struct::codegen(Context::Init, &mut local_needs_lt, app);
|
||||
let (item, constructor) = local_resources_struct::codegen(Context::Init, app);
|
||||
|
||||
root_init.push(item);
|
||||
|
||||
|
|
@ -103,13 +102,7 @@ pub fn codegen(app: &App, analysis: &Analysis) -> CodegenResult {
|
|||
let (shared_resources, local_resources) = #name(#name::Context::new(core.into()));
|
||||
};
|
||||
|
||||
root_init.push(module::codegen(
|
||||
Context::Init,
|
||||
false,
|
||||
local_needs_lt,
|
||||
app,
|
||||
analysis,
|
||||
));
|
||||
root_init.push(module::codegen(Context::Init, app, analysis));
|
||||
|
||||
(mod_app, root_init, user_init, call_init)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue