diff --git a/src/ebml.rs b/src/ebml.rs
index f849dab..a9fc150 100644
--- a/src/ebml.rs
+++ b/src/ebml.rs
@@ -9,7 +9,7 @@ pub const DOC_TYPE_ID: u64 = 0x0282;
pub const VOID_ID: u64 = 0x6C;
#[derive(Debug, PartialEq)]
-pub enum Error {
+pub enum EbmlError {
CorruptVarint,
UnknownElementId,
UnknownElementLength,
@@ -48,7 +48,7 @@ pub enum Varint {
/// Returns Ok(None) if more bytes are needed to get a result.
/// Returns Ok(Some((varint, size))) to return a varint value and
/// the size of the parsed varint.
-pub fn decode_varint(bytes: &[u8]) -> Result