Collect and generate required use-statements

This commit is contained in:
Henrik Tjäder 2020-05-26 10:52:10 +00:00
parent dcc31fb884
commit 9fd052b876
6 changed files with 57 additions and 12 deletions

View file

@ -165,7 +165,7 @@ pub fn codegen(
let constructor = quote!(
impl<#lt> #ident<#lt> {
#[inline(always)]
unsafe fn new(#arg) -> Self {
pub unsafe fn new(#arg) -> Self {
#ident {
#(#values,)*
}