diff options
author | Eric Huss <eric@huss.org> | 2024-05-17 00:44:51 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-17 00:44:51 +0000 |
commit | e0e13e375ecbd60159fc59179421c0d34e1a4ebb (patch) | |
tree | cc25407fa2e3e44b0b68b9afdea25da7d8db2164 | |
parent | cfcba01d03c198972aea13d96baef109cfe4848a (diff) | |
parent | 965f7bde0dc0e0674fe627b809ef55cdb61e9541 (diff) |
Merge pull request #2384 from ehuss/arg_watcher-dead-code
Fix dead_code warning for arg_watcher
-rw-r--r-- | src/cmd/command_prelude.rs | 1 |
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( |