This commit is contained in:
vms 2021-05-10 13:52:16 +03:00
parent 4c99af774f
commit 164d40fa81
2 changed files with 5 additions and 7 deletions

View File

@ -78,10 +78,7 @@ pub fn marine(_attr: TokenStream, input: TokenStream) -> TokenStream {
}
// deprecated macro for backwards compatibility
#[deprecated(
since = "0.6.2",
note = "please use the #[marine] macro instead"
)]
#[deprecated(since = "0.6.2", note = "please use the #[marine] macro instead")]
#[proc_macro_attribute]
pub fn marine(_attr: TokenStream, input: TokenStream) -> TokenStream {
// into converts proc_macro::TokenStream to proc_macro2::TokenStream
@ -90,6 +87,6 @@ pub fn marine(_attr: TokenStream, input: TokenStream) -> TokenStream {
// converts syn:error to proc_macro2::TokenStream
Err(e) => e.to_compile_error(),
}
// converts proc_macro2::TokenStream to proc_macro::TokenStream
.into()
// converts proc_macro2::TokenStream to proc_macro::TokenStream
.into()
}

View File

@ -126,7 +126,8 @@ pub(super) fn generate_test_glue_code(
let app_service_ctor = generate_app_service_ctor(&attrs.config_path, &modules_dir)?;
let modules_dir = file_path.join(modules_dir);
let module_interfaces = marine_test::config_utils::collect_modules(&marine_config, modules_dir)?;
let module_interfaces =
marine_test::config_utils::collect_modules(&marine_config, modules_dir)?;
let module_definitions =
marine_test::module_generator::generate_module_definitions(module_interfaces.iter())?;