Factor out attr module

Factors out field attribute code into the attr module.
This commit is contained in:
Hugo Duncan committed 2015-05-08 12:43:12 -04:00
1 parent 960b68937d
commit ec3af2cb6a
6 files changed
+154 -112

No files matched your search

+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())))