We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7959658 commit 95b7a15Copy full SHA for 95b7a15
src/ser/mod.rs
@@ -22,8 +22,6 @@ pub type Result<T> = ::core::result::Result<T, Error>;
22
pub enum Error {
23
/// Buffer is full
24
BufferFull,
25
- /// Buffer is full
26
- Test(usize),
27
#[doc(hidden)]
28
__Extensible,
29
}
@@ -80,7 +78,7 @@ impl<'a> Serializer<'a> {
80
78
fn extend_from_slice(&mut self, other: &[u8]) -> Result<()> {
81
79
if self.idx + other.len() > self.buf.len() {
82
// won't fit in the buf; don't modify anything and return an error
83
- Err(Error::Test(self.buf.len()))
+ Err(Error::BufferFull)
84
} else {
85
for c in other {
86
unsafe { self.push_unchecked(c.clone()) };
0 commit comments