Removed the library pathing for ConversionError from check_length!().

This commit is contained in:
Myrddin Dundragon 2018-01-05 23:37:09 -05:00
parent 4295886f25
commit 12096a5136

View File

@ -15,7 +15,7 @@ macro_rules! check_length
{ {
if $buffer.len() < $min_bytes 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 if $buffer.len() > $max_bytes
{ {
return Err(::conversion_error::ConversionError::TooManyBytes); return Err(ConversionError::TooManyBytes);
} }
}; };