Skip to content

Commit e39e017

Browse files
committed
chore: ignore lint unsafe_op_in_unsafe_fn for usage of env::remove_var
1 parent 1df1069 commit e39e017

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: src/env.rs

+2
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ pub unsafe fn clearenv() -> std::result::Result<(), ClearEnvError> {
4949
} else {
5050
use std::env;
5151
for (name, _) in env::vars_os() {
52+
// Ignore the lint due to Rust bug: https://github.com/rust-lang/rust/issues/125875
53+
#[allow(unsafe_op_in_unsafe_fn)]
5254
env::remove_var(name);
5355
}
5456
let ret = 0;

0 commit comments

Comments
 (0)