mirror of
https://github.com/clap-rs/clap
synced 2025-01-18 23:53:54 +00:00
perf(derive): Don't parse ValueEnum's doc comment to ignore it
This commit is contained in:
parent
eece51fe04
commit
1d973bd1c1
1 changed files with 2 additions and 1 deletions
|
@ -96,7 +96,8 @@ impl Item {
|
||||||
let parsed_attrs = ClapAttr::parse_all(attrs);
|
let parsed_attrs = ClapAttr::parse_all(attrs);
|
||||||
res.infer_kind(&parsed_attrs);
|
res.infer_kind(&parsed_attrs);
|
||||||
res.push_attrs(&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
|
res
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue