Skip to content

Commit a643834

Browse files
fix test
1 parent d8fb3f3 commit a643834

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/tests/modules/bson.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ use crate::{
1818
Timestamp,
1919
};
2020

21-
use serde_json::Value;
22-
2321
#[test]
22+
#[cfg(feature = "serde_json-1")]
2423
fn to_json() {
2524
let _guard = LOCK.run_concurrently();
2625
let mut doc = Document::new();
@@ -31,7 +30,7 @@ fn to_json() {
3130
doc.insert("first", Bson::Int32(1));
3231
doc.insert("second", Bson::String("foo".to_owned()));
3332
doc.insert("alphanumeric", Bson::String("bar".to_owned()));
34-
let data: Value = Bson::Document(doc).into();
33+
let data: serde_json::Value = Bson::Document(doc).into();
3534

3635
assert!(data.is_object());
3736
let obj = data.as_object().unwrap();

0 commit comments

Comments
 (0)