Skip to content

Commit 87a2fb0

Browse files
committed
Wrap comments from PR 2805 to 80 columns
1 parent 9eaf7b9 commit 87a2fb0

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

serde/src/private/de.rs

+11-9
Original file line numberDiff line numberDiff line change
@@ -1904,10 +1904,11 @@ mod content {
19041904
Content::None => visitor.visit_none(),
19051905
Content::Some(ref v) => visitor.visit_some(ContentRefDeserializer::new(v)),
19061906
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 will
1909-
// report value without using `Visitor::visit_some`, because they do not known in which
1910-
// contexts this value will be used.
1907+
// This case is necessary for formats which does not store
1908+
// marker of optionality of value, for example, JSON. When
1909+
// `deserialize_any` is requested from such formats, they will
1910+
// report value without using `Visitor::visit_some`, because
1911+
// they do not known in which contexts this value will be used.
19111912
// RON is example of format which preserve markers.
19121913
_ => visitor.visit_some(self),
19131914
}
@@ -1944,11 +1945,12 @@ mod content {
19441945
Content::Newtype(ref v) => {
19451946
visitor.visit_newtype_struct(ContentRefDeserializer::new(v))
19461947
}
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 will
1949-
// report value without using `Visitor::visit_newtype_struct`, because they do not
1950-
// 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 store
1949+
// marker of a newtype, for example, JSON. When
1950+
// `deserialize_any` is requested from such formats, they will
1951+
// report value without using `Visitor::visit_newtype_struct`,
1952+
// because they do not known in which contexts this value will
1953+
// be used. RON is example of format which preserve markers.
19521954
_ => visitor.visit_newtype_struct(self),
19531955
}
19541956
}

0 commit comments

Comments
 (0)