Closed j-lanson closed 1 week ago
Replace use of drain() with custom drain_at_most_n_bytes() to ensure we don't try to drain from the middle of a multi-char character and cause a panic. Added some test cases.
drain()
drain_at_most_n_bytes()
Replace use of
drain()
with customdrain_at_most_n_bytes()
to ensure we don't try to drain from the middle of a multi-char character and cause a panic. Added some test cases.