Skip to content

Commit

Permalink
actually compiles now?
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-i-m committed Aug 30, 2019
1 parent 2e59c4a commit 3f6db84
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/tools/rustbook/src/main.rs
Expand Up @@ -60,11 +60,14 @@ fn main() {
#[cfg(feature = "linkcheck")]
{
err.downcast::<BrokenLinks>()
.map(|broken_links| {
broken_links
.links()
.iter()
.inspect(|cause| eprintln!("\tCaused By: {}", cause))
.any(|cause| !format!("{}", cause).contains("timed out"))
})
.unwrap_or(false)
.links()
.iter()
.inspect(|cause| eprintln!("\tCaused By: {}", cause))
.any(|cause| !cause.contains("timed out"));
}

#[cfg(not(feature = "linkcheck"))]
Expand Down

0 comments on commit 3f6db84

Please sign in to comment.