perf(derive): Don't parse ValueEnum's doc comment to ignore it

This commit is contained in:
Ed Page 2022-09-06 10:36:22 -05:00
parent eece51fe04
commit 1d973bd1c1

View file

@ -96,7 +96,8 @@ impl Item {
let parsed_attrs = ClapAttr::parse_all(attrs);
res.infer_kind(&parsed_attrs);
res.push_attrs(&parsed_attrs);
res.push_doc_comment(attrs, "about");
// Ignoring `push_doc_comment` as there is no top-level clap builder to add documentation
// to
res
}