File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1070,10 +1070,9 @@ impl TestOperation for FindOne {
1070
1070
) -> BoxFuture < ' a , Result < Option < Entity > > > {
1071
1071
async move {
1072
1072
let collection = test_runner. get_collection ( id) . await ;
1073
- let options: FindOptions = self . options . clone ( ) . into ( ) ;
1074
1073
let result = collection
1075
1074
. find_one ( self . filter . clone ( ) . unwrap_or_default ( ) )
1076
- . with_options ( options)
1075
+ . with_options ( self . options . clone ( ) )
1077
1076
. await ?;
1078
1077
match result {
1079
1078
Some ( result) => Ok ( Some ( Bson :: from ( result) . into ( ) ) ) ,
Original file line number Diff line number Diff line change @@ -680,7 +680,7 @@ impl TestOperation for FindOne {
680
680
async move {
681
681
let action = collection
682
682
. find_one ( self . filter . clone ( ) . unwrap_or_default ( ) )
683
- . with_options ( self . options . clone ( ) . map ( FindOptions :: from ) ) ;
683
+ . with_options ( self . options . clone ( ) ) ;
684
684
let result = match session {
685
685
Some ( session) => action. session ( session) . await ?,
686
686
None => action. await ?,
You can’t perform that action at this time.
0 commit comments