Skip to content

Commit 965f7bd

Browse files
committed
Fix dead_code warning for arg_watcher
1 parent b960c69 commit 965f7bd

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)