Skip to content

Commit a8b5959

Browse files
authored
minor: fix bson clippy (#478)
1 parent 343a7ce commit a8b5959

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

serde-tests/options.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ impl<'de> Deserialize<'de> for Seq {
177177

178178
#[test]
179179
fn to_bson_with_options() {
180+
#[allow(deprecated)]
180181
let options = SerializerOptions::builder().human_readable(false).build();
181182

182183
let mut hm = HashMap::new();
@@ -199,6 +200,7 @@ fn to_bson_with_options() {
199200

200201
#[test]
201202
fn from_bson_with_options() {
203+
#[allow(deprecated)]
202204
let options = DeserializerOptions::builder().human_readable(false).build();
203205

204206
let doc = doc! {

serde-tests/test.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ where
8888

8989
let non_human_readable_doc = bson::to_document_with_options(
9090
&expected_value,
91+
#[allow(deprecated)]
9192
SerializerOptions::builder().human_readable(false).build(),
9293
)
9394
.expect(description);
@@ -96,6 +97,7 @@ where
9697
expected_value,
9798
&bson::from_document_with_options::<T>(
9899
non_human_readable_doc,
100+
#[allow(deprecated)]
99101
DeserializerOptions::builder().human_readable(false).build()
100102
)
101103
.expect(description),
@@ -1388,6 +1390,7 @@ fn non_human_readable() {
13881390
let human_readable = bson::to_bson(&val).unwrap();
13891391
let non_human_readable = bson::to_bson_with_options(
13901392
&val,
1393+
#[allow(deprecated)]
13911394
SerializerOptions::builder().human_readable(false).build(),
13921395
)
13931396
.unwrap();

0 commit comments

Comments
 (0)