Improved support for byte strings

This commit is contained in:
Mikhail Borisov
2015-05-09 03:18:13 +03:00
parent af752ddcb5
commit 875610044f
5 changed files with 124 additions and 3 deletions
+2 -2
View File
@@ -263,10 +263,10 @@ pub trait Visitor {
Err(Error::syntax_error())
}
fn visit_byte_buf<E>(&mut self, _v: Vec<u8>) -> Result<Self::Value, E>
fn visit_byte_buf<E>(&mut self, v: Vec<u8>) -> Result<Self::Value, E>
where E: Error,
{
Err(Error::syntax_error())
self.visit_bytes(&v)
}
}