问题描述
我使用害虫解析器来解析我的输入,但它总是给我两个“缺少文档”的警告:
#[allow(missing_copy_implementations,missing_docs)]
#[derive(Parser,Debug,Clone)]
#[grammar = "grammar.pest"]
pub struct MyParser;
导致:
warning: missing documentation for an enum
--> src/lib.rs:76:10
|
76 | #[derive(Parser,Clone)]
| ^^^^^^
|
note: the lint level is defined here
--> src/lib.rs:7:5
|
7 | missing_docs,| ^^^^^^^^^^^^
= note: this warning originates in a derive macro (in Nightly builds,run with -Z macro-backtrace for more info)
warning: missing documentation for a variant
--> src/lib.rs:76:10
|
76 | #[derive(Parser,Clone)]
| ^^^^^^
|
= note: this warning originates in a derive macro (in Nightly builds,run with -Z macro-backtrace for more info)
warning: 2 warnings emitted
我该如何解决?只有结构应该有文档,枚举应该是私有的。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)