diff --git a/lib/src/fs.rs b/lib/src/fs.rs index 423a46d..0eff8a4 100644 --- a/lib/src/fs.rs +++ b/lib/src/fs.rs @@ -47,8 +47,9 @@ impl Watcher { ) -> Result, RuntimeError> { match self { Self::Native => notify::RecommendedWatcher::new(f).map(|w| Box::new(w) as _), - Self::Poll(delay) => notify::PollWatcher::with_delay(f, delay) - .map(|w| Box::new(w) as _), + Self::Poll(delay) => { + notify::PollWatcher::with_delay(f, delay).map(|w| Box::new(w) as _) + } } .map_err(|err| RuntimeError::FsWatcher { kind: self, diff --git a/lib/src/watchexec.rs b/lib/src/watchexec.rs index 858de91..4a726b3 100644 --- a/lib/src/watchexec.rs +++ b/lib/src/watchexec.rs @@ -58,7 +58,7 @@ impl Watchexec { mut init: InitConfig, mut runtime: RuntimeConfig, ) -> Result, CriticalError> { - debug!(?init, ?runtime, pid=%std::process::id(), "initialising"); + debug!(?init, ?runtime, pid=%std::process::id(), version=%env!("CARGO_PKG_VERSION"), "initialising"); let (ev_s, ev_r) = mpsc::channel(init.event_channel_size); let (ac_s, ac_r) = watch::channel(take(&mut runtime.action));