File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -177,6 +177,7 @@ impl<'de> Deserialize<'de> for Seq {
177
177
178
178
#[ test]
179
179
fn to_bson_with_options ( ) {
180
+ #[ allow( deprecated) ]
180
181
let options = SerializerOptions :: builder ( ) . human_readable ( false ) . build ( ) ;
181
182
182
183
let mut hm = HashMap :: new ( ) ;
@@ -199,6 +200,7 @@ fn to_bson_with_options() {
199
200
200
201
#[ test]
201
202
fn from_bson_with_options ( ) {
203
+ #[ allow( deprecated) ]
202
204
let options = DeserializerOptions :: builder ( ) . human_readable ( false ) . build ( ) ;
203
205
204
206
let doc = doc ! {
Original file line number Diff line number Diff line change 88
88
89
89
let non_human_readable_doc = bson:: to_document_with_options (
90
90
& expected_value,
91
+ #[ allow( deprecated) ]
91
92
SerializerOptions :: builder ( ) . human_readable ( false ) . build ( ) ,
92
93
)
93
94
. expect ( description) ;
96
97
expected_value,
97
98
& bson:: from_document_with_options:: <T >(
98
99
non_human_readable_doc,
100
+ #[ allow( deprecated) ]
99
101
DeserializerOptions :: builder( ) . human_readable( false ) . build( )
100
102
)
101
103
. expect( description) ,
@@ -1388,6 +1390,7 @@ fn non_human_readable() {
1388
1390
let human_readable = bson:: to_bson ( & val) . unwrap ( ) ;
1389
1391
let non_human_readable = bson:: to_bson_with_options (
1390
1392
& val,
1393
+ #[ allow( deprecated) ]
1391
1394
SerializerOptions :: builder ( ) . human_readable ( false ) . build ( ) ,
1392
1395
)
1393
1396
. unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments