Skip to content

Commit

Permalink
clippy fixes (#915)
Browse files Browse the repository at this point in the history
  • Loading branch information
drshika authored Jul 20, 2023
1 parent 3ea6bc1 commit 85956f7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/operation/run_cursor_command.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#[cfg(feature = "in-use-encryption-unstable")]
use bson::doc;
use bson::RawDocumentBuf;

use crate::{
Expand Down Expand Up @@ -99,11 +97,11 @@ impl<'conn> Operation for RunCursorCommand<'conn> {
let doc = Operation::handle_response(&self.run_command, response, description)?;
let cursor_info = bson::from_document(doc)?;
let batch_size = match &self.options {
Some(options) => options.batch_size.clone(),
Some(options) => options.batch_size,
None => None,
};
let max_time = match &self.options {
Some(options) => options.max_time.clone(),
Some(options) => options.max_time,
None => None,
};
let comment = match &self.options {
Expand Down

0 comments on commit 85956f7

Please sign in to comment.