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

Method remove

crates/openshell-server/src/cli.rs:782–787  ·  view source on GitHub ↗
(key: &'static str)

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected