(&mut self)
| 372 | } |
| 373 | |
| 374 | fn cleanup(&mut self) { |
| 375 | if let Some(handle) = self.file_watcher_thread.take() { |
| 376 | drop(self.watcher.take()); |
| 377 | drop(self.watcher_tx.take()); |
| 378 | let _ = handle.join(); |
| 379 | } |
| 380 | } |
| 381 | |
| 382 | pub fn set_platform(&mut self, platform: Platform) { |
| 383 | self.target_platform = platform; |