Skip to content

Commit 0b1adfe

Browse files
authored
add allow(deprecated) for generated code (#216)
1 parent 0963c3b commit 0b1adfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

derive/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ fn generate(input: TokenStream2) -> Result<TokenStream2> {
4444
let type_info_impl = TypeInfoImpl::parse(input)?;
4545
let type_info_impl_toks = type_info_impl.expand()?;
4646
Ok(quote! {
47-
#[allow(non_upper_case_globals, unused_attributes, unused_qualifications)]
47+
#[allow(non_upper_case_globals, deprecated, unused_attributes, unused_qualifications)]
4848
const _: () = {
4949
#type_info_impl_toks;
5050
};

0 commit comments

Comments
 (0)