(&mut self)
| 73 | |
| 74 | impl<T> Drop for ScratchBuffer<T> { |
| 75 | fn drop(&mut self) { |
| 76 | debug_assert!( |
| 77 | self.buffer.is_empty() || std::thread::panicking(), |
| 78 | "Scratch buffers must be empty when dropped." |
| 79 | ); |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | pub(super) struct ScratchSnapshot { |
nothing calls this directly
no outgoing calls
no test coverage detected