diff options
| author | Emil Fresk <emil.fresk@gmail.com> | 2021-02-04 20:22:02 +0100 |
|---|---|---|
| committer | Emil Fresk <emil.fresk@gmail.com> | 2021-02-04 20:22:02 +0100 |
| commit | 6fb43fa97be75f00553e0026ac06f107ee832dc2 (patch) | |
| tree | 5219f673178999295e8738d0f8f7e1623a5a0bb9 /macros/src/codegen/post_init.rs | |
| parent | 0658d53843d5452085e7458269e0abebbf431971 (diff) | |
Minor fixes
Diffstat (limited to 'macros/src/codegen/post_init.rs')
| -rw-r--r-- | macros/src/codegen/post_init.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/macros/src/codegen/post_init.rs b/macros/src/codegen/post_init.rs index 9174dae..9268e04 100644 --- a/macros/src/codegen/post_init.rs +++ b/macros/src/codegen/post_init.rs @@ -25,6 +25,10 @@ pub fn codegen(app: &App, analysis: &Analysis) -> Vec<TokenStream2> { } } + for (monotonic, _) in app.monotonics.iter() { + stmts.push(quote!(#monotonic::reset();)); + } + // Forget the monotonics so they won't be dropped. stmts.push(quote!(core::mem::forget(monotonics);)); |
