Skip to content

Commit 857b010

Browse files
committed
Inline Serializer::serialize_u8 into serialize_bytes
1 parent 6ad5495 commit 857b010

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/ser.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,10 @@ where
198198
.formatter
199199
.begin_array_value(&mut self.writer, first)
200200
.map_err(Error::io));
201-
tri!(self.serialize_u8(*byte));
201+
tri!(self
202+
.formatter
203+
.write_u8(&mut self.writer, *byte)
204+
.map_err(Error::io));
202205
tri!(self
203206
.formatter
204207
.end_array_value(&mut self.writer)

0 commit comments

Comments
 (0)