(&mut self)
| 157 | && !self.gc_eligible |
| 158 | } |
| 159 | fn take(&mut self) -> DirtyPlan { |
| 160 | let plan = DirtyPlan { |
| 161 | dirty: self.dirty, |
| 162 | branches: std::mem::take(&mut self.branches), |
| 163 | new_worktrees: std::mem::take(&mut self.new_worktrees), |
| 164 | gc_eligible: self.gc_eligible, |
| 165 | }; |
| 166 | self.dirty = false; |
| 167 | self.gc_eligible = false; |
| 168 | self.first_event = None; |
| 169 | self.last_event = None; |
| 170 | plan |
| 171 | } |
| 172 | } |
| 173 | |
| 174 | /// The drained work for one debounce cycle. |
no outgoing calls