MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / drop

Method drop

atomic-cli/src/commands/org/set.rs:268–276  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

266
267 impl Drop for HomeGuard {
268 fn drop(&mut self) {
269 // SAFETY: see HomeGuard::new.
270 unsafe {
271 match &self.original {
272 Some(v) => std::env::set_var("ATOMIC_CONFIG_DIR", v),
273 None => std::env::remove_var("ATOMIC_CONFIG_DIR"),
274 }
275 }
276 }
277 }
278
279 fn seed_config(default_org: &str) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected