This commit is contained in:
Emil Fresk 2020-12-12 23:31:05 +01:00
parent 8e8ec9b7b8
commit 1c8de78f6f
4 changed files with 15 additions and 22 deletions

View file

@ -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