Fix for default monotonic, monotonics::now() now properly works

This commit is contained in:
Emil Fresk 2021-04-20 10:34:26 +02:00
parent b8b13573ae
commit fbcf2aabb0
2 changed files with 9 additions and 1 deletions

View file

@ -111,7 +111,15 @@ pub fn app(app: &App, analysis: &Analysis, extra: &Extra) -> TokenStream2 {
);
let user_imports = &app.user_imports;
let default_monotonic = if monotonic.args.default {
quote!(pub use #name::now;)
} else {
quote!()
};
quote! {
#default_monotonic
#[doc = #doc]
#[allow(non_snake_case)]
pub mod #name {