File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ async fn basic() {
45
45
MessageSection :: Document ( doc) => doc,
46
46
MessageSection :: Sequence { documents, .. } => documents. into_iter ( ) . next ( ) . unwrap ( ) ,
47
47
} ;
48
- let response_doc: Document = bson:: from_slice ( & response_doc_bytes. as_slice ( ) ) . unwrap ( ) ;
48
+ let response_doc: Document = bson:: from_slice ( response_doc_bytes. as_slice ( ) ) . unwrap ( ) ;
49
49
50
50
assert_eq ! ( response_doc. get( "ok" ) , Some ( & Bson :: Double ( 1.0 ) ) ) ;
51
51
}
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ pub(crate) trait Response: Sized {
142
142
/// Whether the command succeeeded or not (i.e. if this response is ok: 1).
143
143
fn is_success ( & self ) -> bool {
144
144
match self . ok ( ) {
145
- Some ( b) => bson_util:: get_int ( & b) == Some ( 1 ) ,
145
+ Some ( b) => bson_util:: get_int ( b) == Some ( 1 ) ,
146
146
None => false ,
147
147
}
148
148
}
Original file line number Diff line number Diff line change @@ -73,5 +73,5 @@ fn get_default_uri() -> String {
73
73
return uri;
74
74
}
75
75
}
76
- return "mongodb://localhost:27017" . to_string ( ) ;
76
+ "mongodb://localhost:27017" . to_string ( )
77
77
}
You can’t perform that action at this time.
0 commit comments