File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,6 @@ use mdbook::renderer::RenderContext;
20
20
use mdbook_linkcheck:: { self , errors:: BrokenLinks } ;
21
21
use failure:: Error ;
22
22
23
- #[ cfg( not( all( target_arch = "x86_64" , target_os = "linux" ) ) ) ]
24
- use failure:: bail;
25
-
26
23
fn main ( ) {
27
24
let d_message = "-d, --dest-dir=[dest-dir]
28
25
'The output directory for your book{n}(Defaults to ./book when omitted)'" ;
@@ -109,7 +106,8 @@ pub fn linkcheck(args: &ArgMatches<'_>) -> Result<(), Error> {
109
106
110
107
#[ cfg( not( all( target_arch = "x86_64" , target_os = "linux" ) ) ) ]
111
108
pub fn linkcheck ( _args : & ArgMatches < ' _ > ) -> Result < ( ) , Error > {
112
- bail ! ( "mdbook-linkcheck only works on x86_64 linux targets." ) ;
109
+ println ! ( "mdbook-linkcheck only works on x86_64 linux targets." ) ;
110
+ Ok ( ( ) )
113
111
}
114
112
115
113
// Build command implementation
You can’t perform that action at this time.
0 commit comments