Cleanup export and actually use rtic::export, made fn init inline

This commit is contained in:
Emil Fresk 2021-09-14 16:13:28 +02:00
parent 22ec841ee1
commit addb086070
3 changed files with 6 additions and 4 deletions

View file

@ -77,6 +77,7 @@ pub fn codegen(app: &App, analysis: &Analysis, extra: &Extra) -> CodegenResult {
let user_init = quote!(
#(#attrs)*
#[inline(always)]
#[allow(non_snake_case)]
fn #name(#context: #name::Context) -> (#user_init_return) {
#(#stmts)*