We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e05bb5 commit 14fc9dcCopy full SHA for 14fc9dc
library/std/src/sys_common/process.rs
@@ -39,22 +39,6 @@ impl CommandEnv {
39
result
40
}
41
42
- // Apply these changes directly to the current environment
43
- pub fn apply(&self) {
44
- if self.clear {
45
- for (k, _) in env::vars_os() {
46
- env::remove_var(k);
47
- }
48
49
- for (key, maybe_val) in self.vars.iter() {
50
- if let Some(ref val) = maybe_val {
51
- env::set_var(key, val);
52
- } else {
53
- env::remove_var(key);
54
55
56
57
-
58
pub fn is_unchanged(&self) -> bool {
59
!self.clear && self.vars.is_empty()
60
0 commit comments