aboutsummaryrefslogtreecommitdiff
path: root/macros/src/codegen/idle.rs
diff options
context:
space:
mode:
authorEmil Fresk <emil.fresk@gmail.com>2021-05-06 19:40:37 +0200
committerEmil Fresk <emil.fresk@gmail.com>2021-05-06 19:40:37 +0200
commitb4509bdbfe7cd5accf4c6b791a18ca55183a4993 (patch)
tree77d5cf702a9be6afa123844af07f316338527714 /macros/src/codegen/idle.rs
parentaad8f81991c3495f225df80d7c8456faecd40728 (diff)
Flattened the _ out of it
Diffstat (limited to 'macros/src/codegen/idle.rs')
-rw-r--r--macros/src/codegen/idle.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/macros/src/codegen/idle.rs b/macros/src/codegen/idle.rs
index b1d2e00..4bc41c1 100644
--- a/macros/src/codegen/idle.rs
+++ b/macros/src/codegen/idle.rs
@@ -74,10 +74,8 @@ pub fn codegen(
}
));
- let app_name = &app.name;
- let app_path = quote! {crate::#app_name};
let locals_new = locals_new.iter();
- let call_idle = quote!(#app_path::#name(
+ let call_idle = quote!(#name(
#(#locals_new,)*
#name::Context::new(&rtic::export::Priority::new(0))
));