Skip to content

Commit 899662c

Browse files
authored
Merge pull request #47 from akonradi-signal/anonymous-const
Don't name the output of the const block
2 parents e500225 + c8d66ad commit 899662c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/expand.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@ pub(crate) fn derive(input: &DeriveInput) -> Result<TokenStream> {
1919
}?;
2020

2121
let helpers = specialization();
22-
let dummy_const = format_ident!("_DERIVE_Display_FOR_{}", input.ident);
2322
Ok(quote! {
2423
#[allow(non_upper_case_globals, unused_attributes, unused_qualifications)]
25-
const #dummy_const: () = {
24+
const _: () = {
2625
#helpers
2726
#impls
2827
};

0 commit comments

Comments
 (0)