summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Huss <eric@huss.org>2024-05-16 17:37:23 -0700
committerEric Huss <eric@huss.org>2024-05-16 17:38:52 -0700
commit965f7bde0dc0e0674fe627b809ef55cdb61e9541 (patch)
tree5109f64b3dde486781a651bed4f4b0f27f0a9a71
parentb960c697dcf55b7d4657e8104d5bf3faf3080471 (diff)
Fix dead_code warning for arg_watcher
-rw-r--r--src/cmd/command_prelude.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/command_prelude.rs b/src/cmd/command_prelude.rs
index ea2d3095..37199425 100644
--- a/src/cmd/command_prelude.rs
+++ b/src/cmd/command_prelude.rs
@@ -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(