Sometimes we use thiserror to put {0} of an inner error in our Display
impl. If that happens, just skip the repetition.
This is a slight bodge.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
}
}
let mut sol: Sol = default();
+ let mut printed = String::new();
for e in self.chain() {
let s = e.to_string();
+ if printed.contains(&s) { continue }
let long = s.len() > 80;
if long && sol.any { sol.nl() }
sol.head();
- eprint!(": {}", s);
+ eprint!(": {}", &s);
if long { sol.nl() }
+ printed = s;
}
sol.nl();
assert!(estatus > 0);