[lang2/macro] suppress some unused_parens warnings

parent f0478930
Pipeline #56134 failed with stages
in 1 minute and 35 seconds
......@@ -102,11 +102,13 @@ impl Dispatch<'_> {
let fn_input = quote_spanned!(sig.inputs.span() =>
impl ink_lang2::FnInput for #namespace<[(); #selector_id]> {
#[allow(unused_parens)]
type Input = (#inputs_punct);
}
);
let fn_output = quote_spanned!(sig.output.span() =>
impl ink_lang2::FnOutput for #namespace<[(); #selector_id]> {
#[allow(unused_parens)]
type Output = (#output_type);
}
);
......@@ -223,6 +225,7 @@ impl Dispatch<'_> {
quote! {
impl ink_lang2::DispatchUsingMode for StorageAndEnv {
#[allow(unused_parens)]
fn dispatch_using_mode(
mode: ink_lang2::DispatchMode
) -> core::result::Result<(), ink_lang2::DispatchError> {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment