Skip to content

Commit 85956f7

Browse files
authored
clippy fixes (#915)
1 parent 3ea6bc1 commit 85956f7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/operation/run_cursor_command.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#[cfg(feature = "in-use-encryption-unstable")]
2-
use bson::doc;
31
use bson::RawDocumentBuf;
42

53
use crate::{
@@ -99,11 +97,11 @@ impl<'conn> Operation for RunCursorCommand<'conn> {
9997
let doc = Operation::handle_response(&self.run_command, response, description)?;
10098
let cursor_info = bson::from_document(doc)?;
10199
let batch_size = match &self.options {
102-
Some(options) => options.batch_size.clone(),
100+
Some(options) => options.batch_size,
103101
None => None,
104102
};
105103
let max_time = match &self.options {
106-
Some(options) => options.max_time.clone(),
104+
Some(options) => options.max_time,
107105
None => None,
108106
};
109107
let comment = match &self.options {

0 commit comments

Comments
 (0)