Skip to content

Commit

Permalink
Strip out #[allow(dead_code)] from VALUES
Browse files Browse the repository at this point in the history
  • Loading branch information
sug0 committed Dec 20, 2022
1 parent 56599b1 commit ad0d2bc
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit ad0d2bc

Please sign in to comment.