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
+1 -1
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"
})