Skip to content

Commit b859f54

Browse files
committed
Remove comments about omitting None values
1 parent 6e11418 commit b859f54

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

src/ser/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,6 @@ mod tests {
952952
description: Some("An ambient temperature sensor"),
953953
});
954954

955-
// XXX Ideally this should produce "{}"
956955
assert_eq!(
957956
to_string(&Property { description: None }).unwrap(),
958957
r#"{"description":null}"#

src/ser/struct_.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ impl<'a> ser::SerializeStruct for SerializeStruct<'a> {
2121
where
2222
T: ser::Serialize,
2323
{
24-
// XXX if `value` is `None` we not produce any output for this field
2524
if !self.first {
2625
self.ser.buf.push(b',');
2726
}
@@ -50,7 +49,6 @@ impl<'a> ser::SerializeStructVariant for SerializeStruct<'a> {
5049
where
5150
T: ser::Serialize,
5251
{
53-
// XXX if `value` is `None` we not produce any output for this field
5452
if !self.first {
5553
self.ser.buf.push(b',');
5654
}

0 commit comments

Comments
 (0)