File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ use mdbook_1::errors::{Result as Result1};
12
12
13
13
use mdbook:: MDBook ;
14
14
use mdbook:: errors:: { Result as Result3 } ;
15
+
16
+ #[ cfg( all( target_arch = "x86_64" , target_os = "linux" ) ) ]
15
17
use mdbook:: renderer:: RenderContext ;
16
18
17
19
#[ cfg( all( target_arch = "x86_64" , target_os = "linux" ) ) ]
@@ -79,9 +81,12 @@ fn main() {
79
81
if let Err ( err) = linkcheck ( sub_matches) {
80
82
eprintln ! ( "Error: {}" , err) ;
81
83
82
- if let Ok ( broken_links) = err. downcast :: < BrokenLinks > ( ) {
83
- for cause in broken_links. links ( ) . iter ( ) {
84
- eprintln ! ( "\t Caused By: {}" , cause) ;
84
+ #[ cfg( all( target_arch = "x86_64" , target_os = "linux" ) ) ]
85
+ {
86
+ if let Ok ( broken_links) = err. downcast :: < BrokenLinks > ( ) {
87
+ for cause in broken_links. links ( ) . iter ( ) {
88
+ eprintln ! ( "\t Caused By: {}" , cause) ;
89
+ }
85
90
}
86
91
}
87
92
You can’t perform that action at this time.
0 commit comments