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