Skip to content

Commit 3f6db84

Browse files
committed
actually compiles now?
1 parent 2e59c4a commit 3f6db84

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/tools/rustbook/src/main.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,14 @@ fn main() {
6060
#[cfg(feature = "linkcheck")]
6161
{
6262
err.downcast::<BrokenLinks>()
63+
.map(|broken_links| {
64+
broken_links
65+
.links()
66+
.iter()
67+
.inspect(|cause| eprintln!("\tCaused By: {}", cause))
68+
.any(|cause| !format!("{}", cause).contains("timed out"))
69+
})
6370
.unwrap_or(false)
64-
.links()
65-
.iter()
66-
.inspect(|cause| eprintln!("\tCaused By: {}", cause))
67-
.any(|cause| !cause.contains("timed out"));
6871
}
6972

7073
#[cfg(not(feature = "linkcheck"))]

0 commit comments

Comments
 (0)