From 43cb7d08e4ec732862fa39ff1d1555cdaa54ae3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Luis=20Leal=20Cardoso=20Junior?= Date: Fri, 5 Jul 2019 11:57:33 -0300 Subject: [PATCH] Ignore unused variable for non-linux builds --- src/tools/rustbook/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/rustbook/src/main.rs b/src/tools/rustbook/src/main.rs index a9f8167c5ac..d9b16780107 100644 --- a/src/tools/rustbook/src/main.rs +++ b/src/tools/rustbook/src/main.rs @@ -108,7 +108,7 @@ pub fn linkcheck(args: &ArgMatches<'_>) -> Result<(), Error> { } #[cfg(not(all(target_arch = "x86_64", target_os = "linux")))] -pub fn linkcheck(args: &ArgMatches<'_>) -> Result<(), Error> { +pub fn linkcheck(_args: &ArgMatches<'_>) -> Result<(), Error> { bail!("mdbook-linkcheck only works on x86_64 linux targets."); }