From 12096a51361cf4574d7af3e5ad43e19e63a594ad Mon Sep 17 00:00:00 2001 From: Jason Smith Date: Fri, 5 Jan 2018 23:37:09 -0500 Subject: [PATCH] Removed the library pathing for ConversionError from check_length!(). --- src/macros.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/macros.rs b/src/macros.rs index c007cea..ebf1031 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -15,7 +15,7 @@ macro_rules! check_length { if $buffer.len() < $min_bytes { - return Err(::conversion_error::ConversionError::TooFewBytes); + return Err(ConversionError::TooFewBytes); } }; @@ -25,7 +25,7 @@ macro_rules! check_length { if $buffer.len() > $max_bytes { - return Err(::conversion_error::ConversionError::TooManyBytes); + return Err(ConversionError::TooManyBytes); } };