add new line after printing strings (#251)

This commit is contained in:
Gökmen Görgen 2021-10-31 20:47:15 +03:00 committed by GitHub
parent aae7b5a310
commit 4d77bd99c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,7 +9,7 @@ pub trait Print {
impl Print for &str {
fn print(&self, writter: &mut dyn WriteColor) -> Result<()> {
write!(writter, "{}", self).with_context(|| {
writeln!(writter, "{}", self).with_context(|| {
error!(r#"cannot write string to writter: "{}""#, self);
"cannot write string to writter"
})