Closed tarcieri closed 9 months ago
The Encoder previously returned Error::Length even when there was one remaining byte in the buffer.
Encoder
Error::Length
This fixes that error and adds an edge case test.
Missing the test?
The test is the existing one in encoder.rs, however it passed before because it was using the wrong length
encoder.rs
The
Encoder
previously returnedError::Length
even when there was one remaining byte in the buffer.This fixes that error and adds an edge case test.