Skip to content

Commit

Permalink
Fix non_snake_case warning
Browse files Browse the repository at this point in the history
Fixes #180
  • Loading branch information
danielhenrymantilla committed Sep 8, 2023
1 parent 3cdcfed commit 5776f2c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/proc_macro/derives/c_type/struct_.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ fn derive (
}))?
;

impl_body.extend(quote!(
impl_body.extend(quote_spanned!(Span::mixed_site()=>
#[allow(nonstandard_style)]
fn define_self__impl (
language: &'_ dyn #headers::languages::HeaderLanguage,
definer: &'_ mut dyn #headers::Definer,
Expand Down
1 change: 1 addition & 0 deletions src/proc_macro/derives/repr_c/enum_.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ fn derive (
#EnumName_str.into()
}

#[allow(nonstandard_style)]
fn define_self__impl (
language: &'_ dyn #HeaderLanguage,
definer: &'_ mut dyn #Definer,
Expand Down
1 change: 1 addition & 0 deletions src/proc_macro/derives/repr_c/struct_.rs
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,7 @@ fn derive_opaque (
#short_name
}

#[allow(nonstandard_style)]
fn define_self__impl (
language: &'_ dyn #ඞ::HeaderLanguage,
definer: &'_ mut dyn #ඞ::Definer,
Expand Down

0 comments on commit 5776f2c

Please sign in to comment.