mirror of
https://github.com/extrawurst/gitui.git
synced 2024-11-26 03:00:03 +03:00
enforce docs
This commit is contained in:
parent
96b2b30052
commit
ed034e432c
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user