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 e6f7531 commit 455a003Copy full SHA for 455a003
tests/modules/bson.rs
@@ -17,9 +17,9 @@ fn to_json() {
17
18
let second = obj.get("second").unwrap();
19
assert!(second.is_string());
20
- assert_eq!(second.as_string().unwrap(), "foo");
+ assert_eq!(second.as_str().unwrap(), "foo");
21
22
let alphanumeric = obj.get("alphanumeric").unwrap();
23
assert!(alphanumeric.is_string());
24
- assert_eq!(alphanumeric.as_string().unwrap(), "bar");
+ assert_eq!(alphanumeric.as_str().unwrap(), "bar");
25
}
tests/modules/oid.rs
@@ -1,6 +1,5 @@
1
use bson::oid::ObjectId;
2
use rustc_serialize::hex::ToHex;
3
-use rustc_serialize::json;
4
5
#[test]
6
fn deserialize() {
0 commit comments