From 50c9d607789886dc91c1d4c200f08edacfe019a6 Mon Sep 17 00:00:00 2001 From: debris Date: Wed, 25 Nov 2015 09:58:24 +0100 Subject: [PATCH] renamed RlpIsNotArray to RlpExpectedToBeArray --- src/rlp.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rlp.rs b/src/rlp.rs index 2f97390c7..a0fe455b5 100644 --- a/src/rlp.rs +++ b/src/rlp.rs @@ -41,7 +41,7 @@ impl ItemInfo { pub enum DecoderError { FromBytesError(FromBytesError), RlpIsTooShort, - RlpIsNotArray, + RlpExpectedToBeArray, BadRlp, } impl StdError for DecoderError { @@ -72,7 +72,7 @@ impl <'a>Rlp<'a> { /// paren container caches searched position pub fn at(&self, index: usize) -> Result, DecoderError> { if !self.is_array() { - return Err(DecoderError::RlpIsNotArray); + return Err(DecoderError::RlpExpectedToBeArray); } // move to cached position if it's index is less or equal to