Skip to content

Commit

Permalink
Inline Serializer::serialize_u8 into serialize_bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jul 11, 2023
1 parent 6ad5495 commit 857b010
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,10 @@ where
.formatter
.begin_array_value(&mut self.writer, first)
.map_err(Error::io));
tri!(self.serialize_u8(*byte));
tri!(self
.formatter
.write_u8(&mut self.writer, *byte)
.map_err(Error::io));
tri!(self
.formatter
.end_array_value(&mut self.writer)
Expand Down

0 comments on commit 857b010

Please sign in to comment.