From ad0d2bcd40b93df3bc1a620c9b91798f7c781896 Mon Sep 17 00:00:00 2001 From: Tiago Carvalho Date: Tue, 20 Dec 2022 15:58:28 +0000 Subject: [PATCH] Strip out #[allow(dead_code)] from VALUES --- macros/src/lib.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/macros/src/lib.rs b/macros/src/lib.rs index b1e4079169..50f14258d7 100644 --- a/macros/src/lib.rs +++ b/macros/src/lib.rs @@ -218,7 +218,6 @@ fn derive_storage_keys_inner(struct_def: TokenStream2) -> TokenStream2 { &[ #ident_list ] }; - #[allow(dead_code)] const VALUES: #struct_def_ident = Self { #values_list }; @@ -301,7 +300,6 @@ mod test_proc_macros { let Keys { bird, is, the, word } = Self::VALUES; &[bird, is, the, word] }; - #[allow(dead_code)] const VALUES: Keys = Self { bird: "bird", is: "is", @@ -367,7 +365,6 @@ mod test_proc_macros { let Keys { param1, param2 } = Self::VALUES; &[param1, param2] }; - #[allow(dead_code)] const VALUES: Keys = Self { param1: "param1", param2: "param2"