Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Remove panic in macro and whitelist attribute types for storage
Browse files Browse the repository at this point in the history
genesis config lines.
  • Loading branch information
jimpo committed Nov 6, 2019
1 parent bcb355f commit 61cd3f0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ impl GenesisConfigDef {

for line in &def.extra_genesis_config_lines {
let attrs = line.attrs.iter()
.map(|a| a.parse_meta().expect("attribute cannot be parsed"))
.filter_map(|a| a.parse_meta().ok())
.filter(|m| m.name() == "doc" || m.name() == "serde")
.collect();

let default = line.default.as_ref().map(|e| quote!( #e ))
Expand Down

0 comments on commit 61cd3f0

Please sign in to comment.