From ed034e432c6092d1708d5e6c89f57579b5a0d64c Mon Sep 17 00:00:00 2001 From: Stephan Dilly Date: Wed, 25 Mar 2020 13:01:45 +0100 Subject: [PATCH] enforce docs --- scopetime/src/lib.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scopetime/src/lib.rs b/scopetime/src/lib.rs index 206e6c7b..5b7474a7 100644 --- a/scopetime/src/lib.rs +++ b/scopetime/src/lib.rs @@ -1,4 +1,8 @@ -#[deny(unsafe_code)] +//! simple macro to insert a scope based runtime measure that logs the result + +#![forbid(unsafe_code)] +#![warn(missing_docs)] + use log::trace; use std::time::Instant; @@ -43,6 +47,7 @@ impl<'a> Drop for ScopeTimeLog<'a> { } } +/// #[cfg(feature = "enabled")] #[macro_export] macro_rules! scope_time { @@ -57,6 +62,7 @@ macro_rules! scope_time { }; } +#[doc(hidden)] #[cfg(not(feature = "enabled"))] #[macro_export] macro_rules! scope_time {