File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 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};
1212
1313use mdbook:: MDBook ;
1414use mdbook:: errors:: { Result as Result3 } ;
15+
16+ #[ cfg( all( target_arch = "x86_64" , target_os = "linux" ) ) ]
1517use mdbook:: renderer:: RenderContext ;
1618
1719#[ cfg( all( target_arch = "x86_64" , target_os = "linux" ) ) ]
@@ -79,9 +81,12 @@ fn main() {
7981 if let Err ( err) = linkcheck ( sub_matches) {
8082 eprintln ! ( "Error: {}" , err) ;
8183
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+ }
8590 }
8691 }
8792
You can’t perform that action at this time.
0 commit comments