From 8ab1c972645c225621f6fdaacbbd71b6ccef2b49 Mon Sep 17 00:00:00 2001 From: Ian McIntyre Date: Thu, 15 Aug 2024 10:28:25 -0400 Subject: [PATCH] Warn when missing public safety docs As of this commit, nothing triggers this warning. --- logging/src/lib.rs | 3 ++- src/lib.rs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/logging/src/lib.rs b/logging/src/lib.rs index b9a2b198..06f3a3f7 100644 --- a/logging/src/lib.rs +++ b/logging/src/lib.rs @@ -256,7 +256,8 @@ #![warn( missing_docs, unsafe_op_in_unsafe_fn, - clippy::undocumented_unsafe_blocks + clippy::undocumented_unsafe_blocks, + clippy::missing_safety_doc )] #[cfg(feature = "defmt")] diff --git a/src/lib.rs b/src/lib.rs index 6f9736f3..740a338a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -84,7 +84,8 @@ #![warn( missing_docs, unsafe_op_in_unsafe_fn, - clippy::undocumented_unsafe_blocks + clippy::undocumented_unsafe_blocks, + clippy::missing_safety_doc )] use imxrt_ral as ral;