MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / unset

Method unset

crates/openshell-cli/src/run.rs:7894–7900  ·  view source on GitHub ↗
(key: &'static str)

Source from the content-addressed store, hash-verified

7892 }
7893
7894 fn unset(key: &'static str) -> Self {
7895 let original = std::env::var(key).ok();
7896 unsafe {
7897 std::env::remove_var(key);
7898 }
7899 Self { key, original }
7900 }
7901 }
7902
7903 #[allow(unsafe_code)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected