Fix linkcheck result message

This commit is contained in:
RumovZ 2021-07-23 19:40:51 +02:00
parent 6b5ee469bb
commit 07752f43cd

View file

@ -71,7 +71,7 @@ mod test {
.collect::<Outcomes>() .collect::<Outcomes>()
.await; .await;
if !result.0.is_empty() { if !result.0.is_empty() {
panic!("invalid links found: {}", result.message()); panic!("{}", result.message());
} }
} }
@ -115,8 +115,8 @@ mod test {
impl Outcomes { impl Outcomes {
fn message(&self) -> String { fn message(&self) -> String {
iter::once(&format!("{} link(s) could not be validated:", self.0.len())) iter::once("invalid links found:")
.chain(self.0.iter()) .chain(self.0.iter().map(String::as_str))
.join("\n - ") .join("\n - ")
} }
} }