Print a horizontal rule after the last error

This commit is contained in:
Richard Feldman 2021-09-02 21:35:07 -04:00
parent 1360b04227
commit 828c5191cf
3 changed files with 23 additions and 2 deletions

View file

@ -119,6 +119,10 @@ impl<'b> Report<'b> {
])
}
}
pub fn horizontal_rule(palette: &'b Palette) -> String {
format!("{}{}", palette.header, "".repeat(80))
}
}
pub struct Palette<'a> {