mirror of
				https://github.com/bspeice/qadapt
				synced 2025-10-31 09:30:37 -04:00 
			
		
		
		
	Don't have doctests depend on debug_assertions
This commit is contained in:
		
							
								
								
									
										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()); | ||||
| ///     # } | ||||
| /// } | ||||
| /// ``` | ||||
|  | ||||
		Reference in New Issue
	
	Block a user