Skip to content

Commit e5e3fbd

Browse files
fix test
1 parent 44f34c7 commit e5e3fbd

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
@@ -19,9 +19,8 @@ use crate::{
1919
Timestamp,
2020
};
2121

22-
use serde_json::Value;
23-
2422
#[test]
23+
#[cfg(feature = "serde_json-1")]
2524
fn to_json() {
2625
let _guard = LOCK.run_concurrently();
2726
let mut doc = Document::new();
@@ -32,7 +31,7 @@ fn to_json() {
3231
doc.insert("first", Bson::Int32(1));
3332
doc.insert("second", Bson::String("foo".to_owned()));
3433
doc.insert("alphanumeric", Bson::String("bar".to_owned()));
35-
let data: Value = Bson::Document(doc).into();
34+
let data: serde_json::Value = Bson::Document(doc).into();
3635

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

0 commit comments

Comments
 (0)