File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ pub struct FeatureCollection {
71
71
/// Foreign Members
72
72
///
73
73
/// [GeoJSON Format Specification § 6](https://tools.ietf.org/html/rfc7946#section-6)
74
+ #[ serde( flatten) ]
74
75
pub foreign_members : Option < JsonObject > ,
75
76
}
76
77
Original file line number Diff line number Diff line change @@ -63,6 +63,12 @@ mod roundtrip_tests {
63
63
let original_json: serde_json:: Value = serde_json:: from_str ( & file_contents) . unwrap ( ) ;
64
64
let roundtrip_json: serde_json:: Value = serde_json:: from_str ( & geojson_string) . unwrap ( ) ;
65
65
66
- assert_eq ! ( original_json, roundtrip_json)
66
+ assert_eq ! (
67
+ original_json,
68
+ roundtrip_json,
69
+ "inconsistent round trip: {file_path}. \n \n original: {} \n \n roundtrip: {}" ,
70
+ serde_json:: to_string_pretty( & original_json) . unwrap( ) ,
71
+ serde_json:: to_string_pretty( & roundtrip_json) . unwrap( )
72
+ ) ;
67
73
}
68
74
}
You can’t perform that action at this time.
0 commit comments