Skip to content

Commit

Permalink
add allow(deprecated) for generated code (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
pkhry authored Nov 19, 2024
1 parent 0963c3b commit 0b1adfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ fn generate(input: TokenStream2) -> Result<TokenStream2> {
let type_info_impl = TypeInfoImpl::parse(input)?;
let type_info_impl_toks = type_info_impl.expand()?;
Ok(quote! {
#[allow(non_upper_case_globals, unused_attributes, unused_qualifications)]
#[allow(non_upper_case_globals, deprecated, unused_attributes, unused_qualifications)]
const _: () = {
#type_info_impl_toks;
};
Expand Down

0 comments on commit 0b1adfe

Please sign in to comment.