We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15ec602 commit e6f7531Copy full SHA for e6f7531
tests/modules/oid.rs
@@ -98,21 +98,3 @@ fn increasing() {
98
let oid2 = oid2_res.unwrap();
99
assert!(oid1 < oid2);
100
}
101
-
102
-#[derive(RustcEncodable,RustcDecodable,PartialEq,Debug)]
103
-struct StructWithObjectId {
104
- id: ObjectId
105
-}
106
107
-#[test]
108
-fn use_in_rustc_serialize() {
109
- let s = "541b1a00e8a23afa832b218e";
110
- let s = StructWithObjectId {
111
- id: ObjectId::with_string(s).unwrap()
112
- };
113
- let encoded = json::encode(&s).unwrap();
114
- assert_eq!("{\"id\":\"541b1a00e8a23afa832b218e\"}", encoded);
115
116
- let decoded: StructWithObjectId = json::decode(&encoded).unwrap();
117
- assert_eq!(s, decoded);
118
0 commit comments