Merge pull request #2384 from ehuss/arg_watcher-dead-code

Fix dead_code warning for arg_watcher
This commit is contained in:
Eric Huss 2024-05-17 00:44:51 +00:00 committed by GitHub
commit e0e13e375e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -37,6 +37,7 @@ pub trait CommandExt: Sized {
self._arg(arg!(-o --open "Opens the compiled book in a web browser"))
}
#[cfg(any(feature = "watch", feature = "serve"))]
fn arg_watcher(self) -> Self {
#[cfg(feature = "watch")]
return self._arg(