Skip to content

Commit

Permalink
Remove comments about omitting None values
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Jun 27, 2023
1 parent 6e11418 commit b859f54
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/ser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -952,7 +952,6 @@ mod tests {
description: Some("An ambient temperature sensor"),
});

// XXX Ideally this should produce "{}"
assert_eq!(
to_string(&Property { description: None }).unwrap(),
r#"{"description":null}"#
Expand Down
2 changes: 0 additions & 2 deletions src/ser/struct_.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ impl<'a> ser::SerializeStruct for SerializeStruct<'a> {
where
T: ser::Serialize,
{
// XXX if `value` is `None` we not produce any output for this field
if !self.first {
self.ser.buf.push(b',');
}
Expand Down Expand Up @@ -50,7 +49,6 @@ impl<'a> ser::SerializeStructVariant for SerializeStruct<'a> {
where
T: ser::Serialize,
{
// XXX if `value` is `None` we not produce any output for this field
if !self.first {
self.ser.buf.push(b',');
}
Expand Down

0 comments on commit b859f54

Please sign in to comment.