()
| 265 | #[cfg(feature = "std")] |
| 266 | #[inline] |
| 267 | pub fn flush_deferred_drops() { |
| 268 | DEFERRED_QUEUE.with(|q| { |
| 269 | // Take all queued operations |
| 270 | let ops: Vec<_> = q.borrow_mut().drain(..).collect(); |
| 271 | // Execute them outside the borrow |
| 272 | for op in ops { |
| 273 | op(); |
| 274 | } |
| 275 | }); |
| 276 | } |
no test coverage detected