MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / drop

Method drop

src/config.rs:865–870  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

863#[cfg(test)]
864impl Drop for PinnedUserDataDir {
865 fn drop(&mut self) {
866 match self.previous.take() {
867 Some(previous) => std::env::set_var(USER_DATA_DIR_ENV, previous),
868 None => std::env::remove_var(USER_DATA_DIR_ENV),
869 }
870 }
871}
872
873#[cfg(test)]

Callers

nothing calls this directly

Calls 1

takeMethod · 0.45

Tested by

no test coverage detected