Switch to write_all in input handler

Make sure all input bytes get flushed
This commit is contained in:
Joe Wilm committed 2016-07-29 18:26:51 -07:00
1 parent 9542279f9d
commit 90d66e63fc
1 file changed
+1 -1
+1 -1
View File
@@ -115,7 +115,7 @@ pub struct WriteNotifier<'a, W: Write + 'a>(pub &'a mut W);
impl<'a, W: Write> Notify for WriteNotifier<'a, W> {
fn notify(&mut self, message: &str) {
self.0.write(message.as_bytes()).unwrap();
self.0.write_all(message.as_bytes()).unwrap();
}
}