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

Method drop

atomic-cli/src/commands/workspace/set.rs:293–301  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

291
292 impl Drop for HomeGuard {
293 fn drop(&mut self) {
294 // SAFETY: see HomeGuard::new.
295 unsafe {
296 match &self.original {
297 Some(v) => std::env::set_var("ATOMIC_CONFIG_DIR", v),
298 None => std::env::remove_var("ATOMIC_CONFIG_DIR"),
299 }
300 }
301 }
302 }
303
304 fn seed_config(default_org: &str, existing_workspace: Option<(&str, &str)>) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected