Fix debug_prints in release mode.
This commit is contained in:
parent
93a35ab6f7
commit
d27bae9fa5
1 changed files with 0 additions and 1 deletions
|
@ -33,7 +33,6 @@ mod debug {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Return whether debugging features are enabled in this execution.
|
/// Return whether debugging features are enabled in this execution.
|
||||||
#[cfg(debug_assertions)]
|
|
||||||
pub fn enabled() -> bool {
|
pub fn enabled() -> bool {
|
||||||
static ENABLED: OnceLock<bool> = OnceLock::new();
|
static ENABLED: OnceLock<bool> = OnceLock::new();
|
||||||
*ENABLED.get_or_init(|| std::env::var("SAPHYR_DEBUG").is_ok())
|
*ENABLED.get_or_init(|| std::env::var("SAPHYR_DEBUG").is_ok())
|
||||||
|
|
Loading…
Reference in a new issue