mirror of
https://github.com/fluencelabs/marine-rs-sdk-test
synced 2024-12-04 15:20:18 +00:00
fmt
This commit is contained in:
parent
4c99af774f
commit
164d40fa81
@ -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()
|
||||
}
|
||||
|
@ -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())?;
|
||||
|
Loading…
Reference in New Issue
Block a user