diff options
| author | Namilskyy <alive6863@gmail.com> | 2025-12-01 16:26:00 +0300 |
|---|---|---|
| committer | Namilskyy <alive6863@gmail.com> | 2025-12-01 16:26:00 +0300 |
| commit | 385fde22c90d2b7a279d45dc4378d2ded65da56d (patch) | |
| tree | 4b8d8129d1b93c75ae3ed62d4d2590fbec324ac7 /tests | |
| parent | bd161511220281a2875ae47458abafa8f529de08 (diff) | |
Fixed undeclared unsafe call in test
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/shared.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/shared.rs b/tests/shared.rs index d226425..9a192c1 100644 --- a/tests/shared.rs +++ b/tests/shared.rs @@ -21,7 +21,9 @@ pub fn create_test_config(temp_dir_path: &str) -> Config { // Export this config as TOML so runtime code can read it via MESK_CONFIG_TOML if let Ok(toml_str) = toml::to_string(&cfg) { - std::env::set_var("MESK_CONFIG_TOML", toml_str); + unsafe { + std::env::set_var("MESK_CONFIG_TOML", toml_str); + } } cfg |
