We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6a7538 commit 551b92dCopy full SHA for 551b92d
crates/oro-config/src/lib.rs
@@ -195,9 +195,13 @@ mod tests {
195
#[test]
196
fn env_configs() -> Result<()> {
197
let dir = tempdir().into_diagnostic()?;
198
- env::set_var("ORO_CONFIG_STORE", dir.path().display().to_string());
+ unsafe {
199
+ env::set_var("ORO_CONFIG_STORE", dir.path().display().to_string());
200
+ }
201
let config = OroConfigOptions::new().global(false).load()?;
- env::remove_var("ORO_CONFIG_STORE");
202
203
+ env::remove_var("ORO_CONFIG_STORE");
204
205
assert_eq!(
206
config.get_string("store").into_diagnostic()?,
207
dir.path().display().to_string()
0 commit comments