Skip to content

Commit

Permalink
Fix static str type check
Browse files Browse the repository at this point in the history
  • Loading branch information
sug0 committed Dec 19, 2022
1 parent afcf9e0 commit 6b1695c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ pub fn derive_storage_keys(item: TokenStream) -> TokenStream {
field.ty.to_tokens(&mut toks);
toks.to_string()
};
if field_type != "&'static str" {
if field_type != "& 'static str" {
panic!(
"Expected `&'static str` field type in StorageKeys derive, \
but got {field_type} instead"
Expand Down

0 comments on commit 6b1695c

Please sign in to comment.