File tree Expand file tree Collapse file tree 2 files changed +0
-3
lines changed Expand file tree Collapse file tree 2 files changed +0
-3
lines changed Original file line number Diff line number Diff 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}"#
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments