chore: slight clean up
This commit is contained in:
@@ -7,6 +7,7 @@ pub trait Decode<'b>: Sized {
|
||||
impl Decode<'_> for Filler {
|
||||
fn decode(d: &mut Decoder) -> Result<Filler, String> {
|
||||
d.filler()?;
|
||||
|
||||
Ok(Filler::FillerEnd)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -79,6 +79,7 @@ impl Encode for &[u8] {
|
||||
impl<T: Encode> Encode for Box<T> {
|
||||
fn encode(&self, e: &mut Encoder) -> Result<(), String> {
|
||||
self.as_ref().encode(e)?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user