(&self, f: impl FnOnce(&mut FakeComputeDriverState) -> R)
| 134 | } |
| 135 | |
| 136 | fn with_state<R>(&self, f: impl FnOnce(&mut FakeComputeDriverState) -> R) -> R { |
| 137 | let mut state = self |
| 138 | .state |
| 139 | .lock() |
| 140 | .expect("fake compute driver state poisoned"); |
| 141 | f(&mut state) |
| 142 | } |
| 143 | } |
| 144 | |
| 145 | #[cfg(unix)] |
no outgoing calls
no test coverage detected