mirror of
https://github.com/zaphar/ucg.git
synced 2025-07-21 18:10:42 -04:00
MAINT: Use writeln! instead of write!
This commit is contained in:
parent
97d2493441
commit
76899cb481
@ -161,9 +161,9 @@ impl<C: FilePositioned> StackPrinter<C> {
|
||||
Some(ref pb) => pb.to_string_lossy().to_string(),
|
||||
None => "<eval>".to_string(),
|
||||
};
|
||||
write!(
|
||||
writeln!(
|
||||
w,
|
||||
"{}{}: at {} line: {}, column: {}\n",
|
||||
"{}{}: at {} line: {}, column: {}",
|
||||
tabstop,
|
||||
err.get_msg(),
|
||||
file,
|
||||
@ -173,7 +173,7 @@ impl<C: FilePositioned> StackPrinter<C> {
|
||||
tabstop = "\t";
|
||||
curr_err = err.get_cause();
|
||||
if curr_err.is_some() {
|
||||
write!(w, "Caused by: \n")?;
|
||||
writeln!(w, "Caused by:")?;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user