mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-13 04:21:04 +00:00
Wrap comments from PR 2805 to 80 columns
This commit is contained in:
+11
-9
@@ -1904,10 +1904,11 @@ mod content {
|
|||||||
Content::None => visitor.visit_none(),
|
Content::None => visitor.visit_none(),
|
||||||
Content::Some(ref v) => visitor.visit_some(ContentRefDeserializer::new(v)),
|
Content::Some(ref v) => visitor.visit_some(ContentRefDeserializer::new(v)),
|
||||||
Content::Unit => visitor.visit_unit(),
|
Content::Unit => visitor.visit_unit(),
|
||||||
// This case is necessary for formats which does not store marker of optionality of value,
|
// This case is necessary for formats which does not store
|
||||||
// for example, JSON. When `deserialize_any` is requested from such formats, they will
|
// marker of optionality of value, for example, JSON. When
|
||||||
// report value without using `Visitor::visit_some`, because they do not known in which
|
// `deserialize_any` is requested from such formats, they will
|
||||||
// contexts this value will be used.
|
// report value without using `Visitor::visit_some`, because
|
||||||
|
// they do not known in which contexts this value will be used.
|
||||||
// RON is example of format which preserve markers.
|
// RON is example of format which preserve markers.
|
||||||
_ => visitor.visit_some(self),
|
_ => visitor.visit_some(self),
|
||||||
}
|
}
|
||||||
@@ -1944,11 +1945,12 @@ mod content {
|
|||||||
Content::Newtype(ref v) => {
|
Content::Newtype(ref v) => {
|
||||||
visitor.visit_newtype_struct(ContentRefDeserializer::new(v))
|
visitor.visit_newtype_struct(ContentRefDeserializer::new(v))
|
||||||
}
|
}
|
||||||
// This case is necessary for formats which does not store marker of a newtype,
|
// This case is necessary for formats which does not store
|
||||||
// for example, JSON. When `deserialize_any` is requested from such formats, they will
|
// marker of a newtype, for example, JSON. When
|
||||||
// report value without using `Visitor::visit_newtype_struct`, because they do not
|
// `deserialize_any` is requested from such formats, they will
|
||||||
// known in which contexts this value will be used.
|
// report value without using `Visitor::visit_newtype_struct`,
|
||||||
// RON is example of format which preserve markers.
|
// because they do not known in which contexts this value will
|
||||||
|
// be used. RON is example of format which preserve markers.
|
||||||
_ => visitor.visit_newtype_struct(self),
|
_ => visitor.visit_newtype_struct(self),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user