mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-19 22:35:19 +01:00
Cleanup
This commit is contained in:
parent
8e8ec9b7b8
commit
1c8de78f6f
4 changed files with 15 additions and 22 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue