Skip to content

Commit 95b7a15

Browse files
committed
Remove temporary test error variant
1 parent 7959658 commit 95b7a15

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/ser/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ pub type Result<T> = ::core::result::Result<T, Error>;
2222
pub enum Error {
2323
/// Buffer is full
2424
BufferFull,
25-
/// Buffer is full
26-
Test(usize),
2725
#[doc(hidden)]
2826
__Extensible,
2927
}
@@ -80,7 +78,7 @@ impl<'a> Serializer<'a> {
8078
fn extend_from_slice(&mut self, other: &[u8]) -> Result<()> {
8179
if self.idx + other.len() > self.buf.len() {
8280
// won't fit in the buf; don't modify anything and return an error
83-
Err(Error::Test(self.buf.len()))
81+
Err(Error::BufferFull)
8482
} else {
8583
for c in other {
8684
unsafe { self.push_unchecked(c.clone()) };

0 commit comments

Comments
 (0)