Skip to content

Commit 042f86c

Browse files
committed
refactor: wrap std::env::remove_var() in unsafe block
1 parent 1df1069 commit 042f86c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/env.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ pub unsafe fn clearenv() -> std::result::Result<(), ClearEnvError> {
4949
} else {
5050
use std::env;
5151
for (name, _) in env::vars_os() {
52-
env::remove_var(name);
52+
unsafe { env::remove_var(name); }
5353
}
5454
let ret = 0;
5555
}

0 commit comments

Comments
 (0)