From e471ea41da6bcdf11e2d167371d96a9c85ad396e Mon Sep 17 00:00:00 2001 From: Rob Walker Date: Sat, 28 Jul 2018 11:39:49 -0700 Subject: [PATCH] fixups --- src/entry_writer.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/entry_writer.rs b/src/entry_writer.rs index 3cc4e1c7f8..8668e324b9 100644 --- a/src/entry_writer.rs +++ b/src/entry_writer.rs @@ -21,7 +21,6 @@ impl<'a, W: Write> EntryWriter<'a, W> { fn write_entry(writer: &mut W, entry: &Entry) -> io::Result<()> { let raw = bincode::serialize(&entry).map_err(|e| Error::new(ErrorKind::Other, e.to_string()))?; - // TODO quote new lines... trace!("write_entry raw = {:?}", raw); @@ -36,8 +35,8 @@ impl<'a, W: Write> EntryWriter<'a, W> { } trace!("write_entry escaped = {:?}", escaped); - writer.write(&escaped[..])?; - writer.write(&[b'\n'])?; + writer.write_all(&escaped[..])?; + writer.write_all(&[b'\n'])?; writer.flush() }