result: &str,
color: term::color::Color,
) -> io::Result<()> {
- self.write_pretty(result.as_ref(), color)
+ self.write_pretty(result, color)
}
pub fn write_pretty(&mut self, word: &str, color: term::color::Color) -> io::Result<()> {
match *result {
TestResult::TrOk => self.write_ok()?,
TestResult::TrFailed | TestResult::TrFailedMsg(_) => self.write_failed()?,
- TestResult::TrIgnored => {
- #[cfg(not(bootstrap))]
- self.write_ignored(desc.ignore_message)?;
- #[cfg(bootstrap)]
- self.write_ignored(None)?;
- }
+ TestResult::TrIgnored => self.write_ignored(desc.ignore_message)?,
TestResult::TrBench(ref bs) => {
self.write_bench()?;
self.write_plain(&format!(": {}", fmt_bench_samples(bs)))?;