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.
This commit is contained in:
Ed Page 2024-04-01 09:11:24 -05:00
parent a516bda4ad
commit ebc70d00f9
2 changed files with 1 additions and 1 deletions

View file

@ -17,7 +17,6 @@ include = [
] ]
[workspace.lints.rust] [workspace.lints.rust]
missing_docs = "warn"
rust_2018_idioms = "warn" rust_2018_idioms = "warn"
unreachable_pub = "warn" unreachable_pub = "warn"
unsafe_op_in_unsafe_fn = "warn" unsafe_op_in_unsafe_fn = "warn"

View file

@ -1,6 +1,7 @@
//! > DESCRIPTION //! > DESCRIPTION
#![cfg_attr(docsrs, feature(doc_auto_cfg))] #![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![warn(missing_docs)]
#![warn(clippy::print_stderr)] #![warn(clippy::print_stderr)]
#![warn(clippy::print_stdout)] #![warn(clippy::print_stdout)]
#![allow(non_snake_case)] // TODO: Delete me #![allow(non_snake_case)] // TODO: Delete me