Skip to content

Commit

Permalink
Merge pull request #2384 from ehuss/arg_watcher-dead-code
Browse files Browse the repository at this point in the history
Fix dead_code warning for arg_watcher
  • Loading branch information
ehuss authored May 17, 2024
2 parents cfcba01 + 965f7bd commit e0e13e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cmd/command_prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit e0e13e3

Please sign in to comment.