diff --git a/src/ebml.rs b/src/ebml.rs index 67400ae..5a9293b 100644 --- a/src/ebml.rs +++ b/src/ebml.rs @@ -218,11 +218,11 @@ pub struct Ebml { pub source: Source } -pub trait FromEbml<'b>: Sized { +pub trait FromEbml<'a>: Sized { fn should_unwrap(element_id: u64) -> bool; - fn decode(element_id: u64, bytes: &'b[u8]) -> Result; + fn decode(element_id: u64, bytes: &'a[u8]) -> Result; - fn decode_element<'a: 'b>(bytes: &'a[u8]) -> Result, Error> { + fn decode_element(bytes: &'a[u8]) -> Result, Error> { match decode_tag(bytes) { Ok(None) => Ok(None), Err(err) => Err(err),