mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
Fix linkcheck result message
This commit is contained in:
parent
6b5ee469bb
commit
07752f43cd
1 changed files with 3 additions and 3 deletions
|
@ -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 - ")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue