enforce docs

This commit is contained in:
Stephan Dilly 2020-03-25 13:01:45 +01:00
parent 96b2b30052
commit ed034e432c

View File

@ -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 {