mirror of
https://github.com/gitui-org/gitui
synced 2026-05-23 00:48:35 +00:00
enforce docs
This commit is contained in:
parent
96b2b30052
commit
ed034e432c
1 changed files with 7 additions and 1 deletions
|
|
@ -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 a new issue