Skip to content

Commit

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

0 comments on commit 6ad5495

Please sign in to comment.