Fix fn arg representation to eliminate warning on rust 1.46+
diff --git a/macro/src/expand.rs b/macro/src/expand.rs
index 1bcaa1e..b25d830 100644
--- a/macro/src/expand.rs
+++ b/macro/src/expand.rs
@@ -594,7 +594,7 @@
quote!(#receiver_type::#ident)
}
},
- None => quote!(__extern),
+ None => quote!(::std::mem::transmute::<*const (), #sig>(__extern)),
};
call.extend(quote! { (#(#vars),*) });
@@ -662,7 +662,7 @@
};
let pointer = match invoke {
- None => Some(quote!(__extern: #sig)),
+ None => Some(quote!(__extern: *const ())),
Some(_) => None,
};