Fix debug_prints in release mode.

This commit is contained in:
Ethiraric 2024-04-18 23:34:12 +02:00
parent 93a35ab6f7
commit d27bae9fa5

View file

@ -33,7 +33,6 @@ mod debug {
}
/// Return whether debugging features are enabled in this execution.
#[cfg(debug_assertions)]
pub fn enabled() -> bool {
static ENABLED: OnceLock<bool> = OnceLock::new();
*ENABLED.get_or_init(|| std::env::var("SAPHYR_DEBUG").is_ok())