From b5cd962be8961a269aa92513cefca2154b20a506 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Luis=20Leal=20Cardoso=20Junior?= Date: Fri, 5 Jul 2019 14:36:24 -0300 Subject: [PATCH] Don't return an error from linkcheck when it's not supported' --- src/tools/rustbook/src/main.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/tools/rustbook/src/main.rs b/src/tools/rustbook/src/main.rs index d9b16780107be..c9e240049a1a1 100644 --- a/src/tools/rustbook/src/main.rs +++ b/src/tools/rustbook/src/main.rs @@ -20,9 +20,6 @@ use mdbook::renderer::RenderContext; use mdbook_linkcheck::{self, errors::BrokenLinks}; use failure::Error; -#[cfg(not(all(target_arch = "x86_64", target_os = "linux")))] -use failure::bail; - fn main() { let d_message = "-d, --dest-dir=[dest-dir] 'The output directory for your book{n}(Defaults to ./book when omitted)'"; @@ -109,7 +106,8 @@ pub fn linkcheck(args: &ArgMatches<'_>) -> Result<(), Error> { #[cfg(not(all(target_arch = "x86_64", target_os = "linux")))] pub fn linkcheck(_args: &ArgMatches<'_>) -> Result<(), Error> { - bail!("mdbook-linkcheck only works on x86_64 linux targets."); + println!("mdbook-linkcheck only works on x86_64 linux targets."); + Ok(()) } // Build command implementation