diff options
| author | André Luis Leal Cardoso Junior <andrehjr@gmail.com> | 2019-07-05 14:36:24 -0300 |
|---|---|---|
| committer | André Luis Leal Cardoso Junior <andrehjr@gmail.com> | 2019-07-06 11:05:22 -0300 |
| commit | b5cd962be8961a269aa92513cefca2154b20a506 (patch) | |
| tree | 9585cb8e0899c0961c72a1678d337825d28d66e7 | |
| parent | 43cb7d08e4ec732862fa39ff1d1555cdaa54ae3c (diff) | |
| download | rust-b5cd962be8961a269aa92513cefca2154b20a506.tar.gz rust-b5cd962be8961a269aa92513cefca2154b20a506.zip | |
Don't return an error from linkcheck when it's not supported'
| -rw-r--r-- | src/tools/rustbook/src/main.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/tools/rustbook/src/main.rs b/src/tools/rustbook/src/main.rs index d9b16780107..c9e240049a1 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 |
