We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
doc(include)
1 parent 177b3b2 commit e1096e3Copy full SHA for e1096e3
clippy_lints/src/missing_doc.rs
@@ -53,16 +53,14 @@ impl MissingDoc {
53
*self.doc_hidden_stack.last().expect("empty doc_hidden_stack")
54
}
55
56
- #[allow(clippy::needless_bool)]
57
fn has_include(meta: Option<MetaItem>) -> bool {
58
if_chain! {
59
if let Some(meta) = meta;
60
if let MetaItemKind::List(list) = meta.node;
61
if let Some(meta) = list.get(0);
62
if let Some(name) = meta.name();
63
- if name == "include";
64
then {
65
- true
+ name == "include"
66
} else {
67
false
68
tests/ui/missing-doc-crate.rs
@@ -0,0 +1,5 @@
1
+#![warn(clippy::missing_docs_in_private_items)]
2
+#![feature(external_doc)]
3
+#![doc(include = "../../README.md")]
4
+
5
+fn main() {}
tests/ui/missing-doc-crate.stderr
0 commit comments