Skip to content

Commit

Permalink
Wrap comments from PR 2805 to 80 columns
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Aug 24, 2024
1 parent 9eaf7b9 commit 87a2fb0
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions serde/src/private/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1904,10 +1904,11 @@ mod content {
Content::None => visitor.visit_none(),
Content::Some(ref v) => visitor.visit_some(ContentRefDeserializer::new(v)),
Content::Unit => visitor.visit_unit(),
// This case is necessary for formats which does not store marker of optionality of value,
// for example, JSON. When `deserialize_any` is requested from such formats, they will
// report value without using `Visitor::visit_some`, because they do not known in which
// contexts this value will be used.
// This case is necessary for formats which does not store
// marker of optionality of value, for example, JSON. When
// `deserialize_any` is requested from such formats, they will
// 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.
_ => visitor.visit_some(self),
}
Expand Down Expand Up @@ -1944,11 +1945,12 @@ mod content {
Content::Newtype(ref v) => {
visitor.visit_newtype_struct(ContentRefDeserializer::new(v))
}
// This case is necessary for formats which does not store marker of a newtype,
// for example, JSON. When `deserialize_any` is requested from such formats, they will
// report value without using `Visitor::visit_newtype_struct`, because they do not
// known in which contexts this value will be used.
// RON is example of format which preserve markers.
// This case is necessary for formats which does not store
// marker of a newtype, for example, JSON. When
// `deserialize_any` is requested from such formats, they will
// report value without using `Visitor::visit_newtype_struct`,
// 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),
}
}
Expand Down

0 comments on commit 87a2fb0

Please sign in to comment.