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 44f34c7 commit e5e3fbdCopy full SHA for e5e3fbd
src/tests/modules/bson.rs
@@ -19,9 +19,8 @@ use crate::{
19
Timestamp,
20
};
21
22
-use serde_json::Value;
23
-
24
#[test]
+#[cfg(feature = "serde_json-1")]
25
fn to_json() {
26
let _guard = LOCK.run_concurrently();
27
let mut doc = Document::new();
@@ -32,7 +31,7 @@ fn to_json() {
32
31
doc.insert("first", Bson::Int32(1));
33
doc.insert("second", Bson::String("foo".to_owned()));
34
doc.insert("alphanumeric", Bson::String("bar".to_owned()));
35
- let data: Value = Bson::Document(doc).into();
+ let data: serde_json::Value = Bson::Document(doc).into();
36
37
assert!(data.is_object());
38
let obj = data.as_object().unwrap();
0 commit comments