Skip to content

Commit ebc70d0

Browse files
committed
chore: Only check missing_docs in lib
This also fires in examples and other places. While docs in examples would be nice, it isn't universally applicable and `allow`s would undermine the examples.
1 parent a516bda commit ebc70d0

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ include = [
1717
]
1818

1919
[workspace.lints.rust]
20-
missing_docs = "warn"
2120
rust_2018_idioms = "warn"
2221
unreachable_pub = "warn"
2322
unsafe_op_in_unsafe_fn = "warn"

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//! > DESCRIPTION
22
33
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
4+
#![warn(missing_docs)]
45
#![warn(clippy::print_stderr)]
56
#![warn(clippy::print_stdout)]
67
#![allow(non_snake_case)] // TODO: Delete me

0 commit comments

Comments
 (0)