Skip to content

Commit

Permalink
refactor: wrap std::env::remove_var() in unsafe block
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveLauC committed Jun 1, 2024
1 parent 1df1069 commit 042f86c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ pub unsafe fn clearenv() -> std::result::Result<(), ClearEnvError> {
} else {
use std::env;
for (name, _) in env::vars_os() {
env::remove_var(name);
unsafe { env::remove_var(name); }
}
let ret = 0;
}
Expand Down

0 comments on commit 042f86c

Please sign in to comment.