Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
Merge pull request #206 from jturner314/fix-io-write
Browse files Browse the repository at this point in the history
Fix FmtToIoWriter::write_str to call write_all
  • Loading branch information
dtolnay committed Aug 18, 2021
2 parents 4684ca0 + b6c38bf commit 6c06bd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ser.rs
Expand Up @@ -867,7 +867,7 @@ where
W: io::Write,
{
fn write_str(&mut self, s: &str) -> fmt::Result {
if self.writer.write(s.as_bytes()).is_err() {
if self.writer.write_all(s.as_bytes()).is_err() {
return Err(fmt::Error);
}
Ok(())
Expand Down

0 comments on commit 6c06bd3

Please sign in to comment.