Merge pull request #694 from triska/write_all
FIXED: reliably write all characters when using format/3
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user