(key: &'static str)
| 780 | |
| 781 | #[allow(unsafe_code)] |
| 782 | fn remove(key: &'static str) -> Self { |
| 783 | let original = std::env::var(key).ok(); |
| 784 | // SAFETY: tests serialize environment mutation with ENV_LOCK. |
| 785 | unsafe { std::env::remove_var(key) }; |
| 786 | Self { key, original } |
| 787 | } |
| 788 | } |
| 789 | |
| 790 | impl Drop for EnvVarGuard { |
nothing calls this directly
no outgoing calls
no test coverage detected