Merge pull request #66 from PR0M3TH3AN/codex/fix-rustfmt-formatting-issues

Format watcher module
This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2025-05-22 17:50:36 -04:00
commit 0da18ff40d
1 file changed
+6 -5
+6 -5
View File
@@ -520,15 +520,16 @@ impl FileWatcher {
let _ = h.join();
}
*self
.state
.lock()
.map_err(|_| anyhow::anyhow!("state"))? = WatcherState::Stopped;
*self.state.lock().map_err(|_| anyhow::anyhow!("state"))? = WatcherState::Stopped;
Ok(())
}
pub fn status(&self) -> Result<WatcherStatus> {
let st = self.state.lock().map_err(|_| anyhow::anyhow!("state"))?.clone();
let st = self
.state
.lock()
.map_err(|_| anyhow::anyhow!("state"))?
.clone();
Ok(WatcherStatus {
state: st,
events_processed: self.events_processed.load(Ordering::SeqCst),