Suppress unused variable r-a warning from action derive procmacro
This commit is contained in:
@@ -38,6 +38,7 @@ pub fn action(input: TokenStream) -> TokenStream {
|
|||||||
|
|
||||||
let build_impl = if is_unit_struct {
|
let build_impl = if is_unit_struct {
|
||||||
quote! {
|
quote! {
|
||||||
|
let _ = value;
|
||||||
Ok(std::boxed::Box::new(Self {}))
|
Ok(std::boxed::Box::new(Self {}))
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user