File tree Expand file tree Collapse file tree 3 files changed +9
-11
lines changed Expand file tree Collapse file tree 3 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -229,9 +229,9 @@ impl AuthMechanism {
229229
230230 Ok ( Some ( ClientFirst :: Scram ( ScramVersion :: Sha256 , client_first) ) )
231231 }
232- Self :: MongoDbX509 => Ok ( Some ( ClientFirst :: X509 (
232+ Self :: MongoDbX509 => Ok ( Some ( ClientFirst :: X509 ( Box :: new (
233233 x509:: build_speculative_client_first ( credential) ,
234- ) ) ) ,
234+ ) ) ) ) ,
235235 Self :: Plain => Ok ( None ) ,
236236 #[ cfg( feature = "tokio-runtime" ) ]
237237 AuthMechanism :: MongoDbAws => Ok ( None ) ,
@@ -469,7 +469,7 @@ impl Debug for Credential {
469469/// Contains the first client message sent as part of the authentication handshake.
470470pub ( crate ) enum ClientFirst {
471471 Scram ( ScramVersion , scram:: ClientFirst ) ,
472- X509 ( Command ) ,
472+ X509 ( Box < Command > ) ,
473473}
474474
475475impl ClientFirst {
Original file line number Diff line number Diff line change @@ -9,8 +9,6 @@ use bson::Bson;
99use derivative:: Derivative ;
1010use std:: time:: Instant ;
1111
12- #[ cfg( test) ]
13- pub ( crate ) use self :: executor:: REDACTED_COMMANDS ;
1412#[ cfg( test) ]
1513use crate :: options:: ServerAddress ;
1614use crate :: {
Original file line number Diff line number Diff line change @@ -239,18 +239,18 @@ async fn serialize_all_types() {
239239 "bson" : 1234.5 ,
240240 "oid" : oid,
241241 "null" : Bson :: Null ,
242- "subdoc" : subdoc. clone ( ) ,
242+ "subdoc" : subdoc,
243243 "b" : true ,
244244 "d" : 12.5 ,
245- "binary" : binary. clone ( ) ,
245+ "binary" : binary,
246246 "date" : date,
247- "regex" : regex. clone ( ) ,
247+ "regex" : regex,
248248 "ts" : timestamp,
249249 "i" : { "a" : 300 , "b" : 12345 } ,
250250 "undefined" : Bson :: Undefined ,
251- "code" : code. clone ( ) ,
252- "code_w_scope" : code_w_scope. clone ( ) ,
253- "decimal" : decimal. clone ( ) ,
251+ "code" : code,
252+ "code_w_scope" : code_w_scope,
253+ "decimal" : decimal,
254254 "symbol" : Bson :: Symbol ( "ok" . to_string( ) ) ,
255255 "min_key" : Bson :: MinKey ,
256256 "max_key" : Bson :: MaxKey ,
You can’t perform that action at this time.
0 commit comments