Skip to content

Commit e0e13e3

Browse files
authored
Merge pull request #2384 from ehuss/arg_watcher-dead-code
Fix dead_code warning for arg_watcher
2 parents cfcba01 + 965f7bd commit e0e13e3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cmd/command_prelude.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ pub trait CommandExt: Sized {
3737
self._arg(arg!(-o --open "Opens the compiled book in a web browser"))
3838
}
3939

40+
#[cfg(any(feature = "watch", feature = "serve"))]
4041
fn arg_watcher(self) -> Self {
4142
#[cfg(feature = "watch")]
4243
return self._arg(

0 commit comments

Comments
 (0)