We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e59c4a commit 3f6db84Copy full SHA for 3f6db84
src/tools/rustbook/src/main.rs
@@ -60,11 +60,14 @@ fn main() {
60
#[cfg(feature = "linkcheck")]
61
{
62
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
+ })
70
.unwrap_or(false)
- .links()
- .iter()
- .inspect(|cause| eprintln!("\tCaused By: {}", cause))
- .any(|cause| !cause.contains("timed out"));
71
}
72
73
#[cfg(not(feature = "linkcheck"))]
0 commit comments