We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12def53 commit 7184f16Copy full SHA for 7184f16
src/expand.rs
@@ -11,8 +11,10 @@ pub fn derive(input: &DeriveInput) -> Result<TokenStream> {
11
}?;
12
13
let helpers = specialization();
14
+ let dummy_const = format_ident!("_DERIVE_Display_FOR_{}", input.ident);
15
Ok(quote! {
- const _: () = {
16
+ #[allow(non_upper_case_globals, unused_attributes, unused_qualifications)]
17
+ const #dummy_const: () = {
18
#helpers
19
#impls
20
};
0 commit comments