fix: import std::env in config

This commit is contained in:
Paul Makles
2024-04-08 22:46:35 +01:00
parent 3c76005c33
commit 13b95d383e
2 changed files with 4 additions and 1 deletions

View File

@@ -6,6 +6,9 @@ use futures_locks::RwLock;
use once_cell::sync::Lazy;
use serde::Deserialize;
#[cfg(not(debug_assertions))]
use std::env;
static CONFIG_BUILDER: Lazy<RwLock<Config>> = Lazy::new(|| {
RwLock::new({
let mut builder = Config::builder().add_source(File::from_str(