diff options
| author | Emil Fresk <emil.fresk@gmail.com> | 2020-12-12 23:31:05 +0100 |
|---|---|---|
| committer | Emil Fresk <emil.fresk@gmail.com> | 2020-12-12 23:35:47 +0100 |
| commit | 1c8de78f6f6e9e265d9d894d2ebde622bf16d44e (patch) | |
| tree | 0ce6ed85be7c80e6204adb8bea8467db29a8f9f2 /macros/src/codegen.rs | |
| parent | 8e8ec9b7b879adae8d4de6cb2320b9b19290a7e0 (diff) | |
Cleanup
Diffstat (limited to 'macros/src/codegen.rs')
| -rw-r--r-- | macros/src/codegen.rs | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/macros/src/codegen.rs b/macros/src/codegen.rs index 03bac84..1219e14 100644 --- a/macros/src/codegen.rs +++ b/macros/src/codegen.rs @@ -104,11 +104,15 @@ pub fn app(app: &App, analysis: &Analysis, extra: &Extra) -> TokenStream2 { )); } - let monotonic_imports: Vec<_> = app.monotonics.iter().map(|(_, monotonic)| { - let name = &monotonic.ident; - let ty = &monotonic.ty; - quote!(pub type #name = #ty;) - }).collect(); + let monotonic_imports: Vec<_> = app + .monotonics + .iter() + .map(|(_, monotonic)| { + let name = &monotonic.ident; + let ty = &monotonic.ty; + quote!(pub type #name = #ty;) + }) + .collect(); quote!( /// Implementation details |
