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

Method drop

libatomic/tests/local_sync_test.rs:45–52  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

43
44impl Drop for Environment {
45 fn drop(&mut self) {
46 for (name, value) in &self.0 {
47 match value {
48 Some(value) => std::env::set_var(name, value),
49 None => std::env::remove_var(name),
50 }
51 }
52 }
53}
54
55#[derive(Default)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected