Skip to content
Myr

Wrap comments from PR 2805 to 80 columns

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Tolnay · committed by David Tolnay · parent 9eaf7b9 · Browse files · 1 file+11 added−9 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+11 added−9 removed

  • other:+11 added−9 removed

1 file+11 added−9 removed

modified:serde/src/private/de.rs+11 added-9 removed
1902 unmodified lines
1903 match *self.content {1904 Content::None => visitor.visit_none(),1905 Content::Some(ref v) => visitor.visit_some(ContentRefDeserializer::new(v)),1906 Content::Unit => visitor.visit_unit(),1907 // This case is necessary for formats which does not store marker of optionality of value,1908 // for example, JSON. When `deserialize_any` is requested from such formats, they will1909 // report value without using `Visitor::visit_some`, because they do not known in which1910 // contexts this value will be used.1907 // This case is necessary for formats which does not store1908 // marker of optionality of value, for example, JSON. When1909 // `deserialize_any` is requested from such formats, they will1910 // report value without using `Visitor::visit_some`, because1911 // they do not known in which contexts this value will be used.1912 // RON is example of format which preserve markers.1913 _ => visitor.visit_some(self),1914 }1915 }
28 unmodified lines
1944 match *self.content {1945 Content::Newtype(ref v) => {1946 visitor.visit_newtype_struct(ContentRefDeserializer::new(v))1947 }1947 // This case is necessary for formats which does not store marker of a newtype,1948 // for example, JSON. When `deserialize_any` is requested from such formats, they will1949 // report value without using `Visitor::visit_newtype_struct`, because they do not1950 // known in which contexts this value will be used.1951 // RON is example of format which preserve markers.1948 // This case is necessary for formats which does not store1949 // marker of a newtype, for example, JSON. When1950 // `deserialize_any` is requested from such formats, they will1951 // report value without using `Visitor::visit_newtype_struct`,1952 // because they do not known in which contexts this value will1953 // be used. RON is example of format which preserve markers.1954 _ => visitor.visit_newtype_struct(self),1955 }1956 }1957
834 unmodified lines