Skip to content

Commit 43cb7d0

Browse files
committed
Ignore unused variable for non-linux builds
1 parent f0e45bf commit 43cb7d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/rustbook/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ pub fn linkcheck(args: &ArgMatches<'_>) -> Result<(), Error> {
108108
}
109109

110110
#[cfg(not(all(target_arch = "x86_64", target_os = "linux")))]
111-
pub fn linkcheck(args: &ArgMatches<'_>) -> Result<(), Error> {
111+
pub fn linkcheck(_args: &ArgMatches<'_>) -> Result<(), Error> {
112112
bail!("mdbook-linkcheck only works on x86_64 linux targets.");
113113
}
114114

0 commit comments

Comments
 (0)