Factor out attr module

Factors out field attribute code into the attr module.
This commit is contained in:
Hugo Duncan
2015-05-01 12:53:59 -04:00
parent 960b68937d
commit ec3af2cb6a
6 changed files with 154 additions and 112 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ pub trait Serializer {
fn visit_str(&mut self, value: &str) -> Result<(), Self::Error>;
/// `visit_bytes` is a hook that enables those serialization formats that support serializing
/// byte slices separately from generic arrays. By default it serializes as a regular array.
/// byte slices separately from generic arrays. By default it serializes as a regular array.
#[inline]
fn visit_bytes(&mut self, value: &[u8]) -> Result<(), Self::Error> {
self.visit_seq(impls::SeqIteratorVisitor::new(value.iter(), Some(value.len())))