MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / drop

Method drop

crates/opencode-util/src/util.rs:58–62  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

56
57 impl<F: FnOnce()> Drop for Defer<F> {
58 fn drop(&mut self) {
59 if let Some(f) = self.f.take() {
60 f();
61 }
62 }
63 }
64
65 #[macro_export]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected