mirror of
https://github.com/bspeice/qadapt
synced 2024-11-23 06:18:10 -05:00
Don't have doctests depend on debug_assertions
This commit is contained in:
parent
8df83a56b1
commit
029ca6aba9
12
src/lib.rs
12
src/lib.rs
@ -27,9 +27,7 @@
|
||||
//! # // Because `debug_assertions` are on for doctests in release mode
|
||||
//! # // we have to add an extra guard.
|
||||
//! # if qadapt::is_active() {
|
||||
//! if cfg!(debug_assertions) {
|
||||
//! assert!(qadapt::is_active());
|
||||
//! }
|
||||
//! assert!(qadapt::is_active());
|
||||
//! # }
|
||||
//! }
|
||||
//! ```
|
||||
@ -118,9 +116,7 @@ static INTERNAL_ALLOCATION: RwLock<usize> = RwLock::new(usize::max_value());
|
||||
///
|
||||
/// fn main() {
|
||||
/// # if qadapt::is_active() {
|
||||
/// if cfg!(debug_assertions) {
|
||||
/// assert!(qadapt::is_active());
|
||||
/// }
|
||||
/// assert!(qadapt::is_active());
|
||||
/// # }
|
||||
/// }
|
||||
/// ```
|
||||
@ -324,9 +320,7 @@ pub fn protection_level() -> usize {
|
||||
///
|
||||
/// pub fn main() {
|
||||
/// # if qadapt::is_active() {
|
||||
/// if cfg!(debug_assertions) {
|
||||
/// assert!(is_active());
|
||||
/// }
|
||||
/// assert!(is_active());
|
||||
/// # }
|
||||
/// }
|
||||
/// ```
|
||||
|
Loading…
Reference in New Issue
Block a user