silence warnings for field names that start with _
All checks were successful
/ test (push) Successful in 37m30s

This commit is contained in:
Jacob Lifshay 2024-10-10 20:53:29 -07:00
parent 59cef3f398
commit 1a2149b040
Signed by: programmerjake
SSH key fingerprint: SHA256:B1iRVvUJkvd7upMIiMqn6OyxvD2SgJkAH3ZnUOj6z+c
2 changed files with 2 additions and 3 deletions

View file

@ -340,7 +340,7 @@ impl ToTokens for Builder {
})); }));
quote_spanned! {self.ident.span()=> quote_spanned! {self.ident.span()=>
#[automatically_derived] #[automatically_derived]
#[allow(non_camel_case_types, dead_code)] #[allow(non_camel_case_types, non_snake_case, dead_code)]
impl #impl_generics #unfilled_ty impl #impl_generics #unfilled_ty
#where_clause #where_clause
{ {

View file

@ -9,8 +9,7 @@ pub struct S<T, Len: Size, T2> {
b: UInt<3>, b: UInt<3>,
pub(crate) c: ArrayType<UInt<1>, Len>, pub(crate) c: ArrayType<UInt<1>, Len>,
pub d: T2, pub d: T2,
pub e: PhantomData<T>, pub _phantom: PhantomData<(T, Len)>,
pub f: PhantomData<Len>,
} }
#[hdl(outline_generated)] #[hdl(outline_generated)]