FIXED: reliably write all characters when using format/3

This addresses #693.

Many thanks to @notoria for a brilliant test case, and the
suggestion of this correction!
This commit is contained in:
Markus Triska
2020-09-02 19:20:49 +02:00
parent 7e7aa7992a
commit 78656d220b

View File

@@ -2137,7 +2137,7 @@ impl MachineState {
bytes = string.into_bytes(); bytes = string.into_bytes();
} }
match stream.write(&bytes) { match stream.write_all(&bytes) {
Ok(_) => { Ok(_) => {
return return_from_clause!(self.last_call, self); return return_from_clause!(self.last_call, self);
} }