Skip to content

Commit b2afcb1

Browse files
committed
fix lint
1 parent 3d3ed57 commit b2afcb1

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

src/client/auth/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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.
470470
pub(crate) enum ClientFirst {
471471
Scram(ScramVersion, scram::ClientFirst),
472-
X509(Command),
472+
X509(Box<Command>),
473473
}
474474

475475
impl ClientFirst {

src/client/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ use bson::Bson;
99
use derivative::Derivative;
1010
use std::time::Instant;
1111

12-
#[cfg(test)]
13-
pub(crate) use self::executor::REDACTED_COMMANDS;
1412
#[cfg(test)]
1513
use crate::options::ServerAddress;
1614
use crate::{

src/operation/insert/test.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)