From 4e8595ed742db7e46b9a64ace69812f4c0c8f56c Mon Sep 17 00:00:00 2001 From: Steve Lau Date: Sat, 8 Jun 2024 15:26:44 +0800 Subject: [PATCH] revert: PR 2421 since the Rust issue has been fixed --- src/env.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/env.rs b/src/env.rs index 232797a68c..510bbb0924 100644 --- a/src/env.rs +++ b/src/env.rs @@ -49,8 +49,6 @@ pub unsafe fn clearenv() -> std::result::Result<(), ClearEnvError> { } else { use std::env; for (name, _) in env::vars_os() { - // Ignore the lint due to Rust bug: https://github.com/rust-lang/rust/issues/125875 - #[allow(unsafe_op_in_unsafe_fn)] env::remove_var(name); } let ret = 0;