File tree Expand file tree Collapse file tree 4 files changed +14
-10
lines changed Expand file tree Collapse file tree 4 files changed +14
-10
lines changed Original file line number Diff line number Diff line change 3
3
set -o errexit
4
4
5
5
source ./.evergreen/configure-rust.sh
6
- # Pin clippy to the lastest version. This should be updated when new versions of Rust are released.
7
- rustup default 1.59.0
8
-
9
6
source ./.evergreen/feature-combinations.sh
10
7
8
+ # Pin clippy to the latest version. This should be updated when new versions of Rust are released.
9
+ CLIPPY_VERSION=1.61.0
10
+
11
+ rustup install $CLIPPY_VERSION
12
+
11
13
for (( i = 0 ; i < ${# FEATURE_COMBINATIONS[@]} ; i++ )) ; do
12
- cargo clippy --all-targets ${FEATURE_COMBINATIONS[$i]} -p mongodb -- -D warnings
14
+ cargo + $CLIPPY_VERSION clippy --all-targets ${FEATURE_COMBINATIONS[$i]} -p mongodb -- -D warnings
13
15
done
Original file line number Diff line number Diff line change @@ -382,7 +382,7 @@ impl ClientSession {
382
382
if let Some ( defaults) = self . default_transaction_options ( ) {
383
383
merge_options ! (
384
384
defaults,
385
- & mut options,
385
+ options,
386
386
[
387
387
read_concern,
388
388
write_concern,
Original file line number Diff line number Diff line change @@ -41,10 +41,12 @@ impl Header {
41
41
42
42
/// Serializes the Header and writes the bytes to `w`.
43
43
pub ( crate ) async fn write_to < W : AsyncWrite + Unpin > ( & self , stream : & mut W ) -> Result < ( ) > {
44
- stream. write ( & self . length . to_le_bytes ( ) ) . await ?;
45
- stream. write ( & self . request_id . to_le_bytes ( ) ) . await ?;
46
- stream. write ( & self . response_to . to_le_bytes ( ) ) . await ?;
47
- stream. write ( & ( self . op_code as i32 ) . to_le_bytes ( ) ) . await ?;
44
+ stream. write_all ( & self . length . to_le_bytes ( ) ) . await ?;
45
+ stream. write_all ( & self . request_id . to_le_bytes ( ) ) . await ?;
46
+ stream. write_all ( & self . response_to . to_le_bytes ( ) ) . await ?;
47
+ stream
48
+ . write_all ( & ( self . op_code as i32 ) . to_le_bytes ( ) )
49
+ . await ?;
48
50
49
51
Ok ( ( ) )
50
52
}
Original file line number Diff line number Diff line change @@ -402,7 +402,7 @@ impl TestClient {
402
402
None => default_options,
403
403
} ;
404
404
if Self :: new ( ) . await . is_sharded ( ) && !use_multiple_mongoses {
405
- options. hosts = options. hosts . iter ( ) . cloned ( ) . take ( 1 ) . collect ( ) ;
405
+ options. hosts = options. hosts . iter ( ) . take ( 1 ) . cloned ( ) . collect ( ) ;
406
406
}
407
407
options
408
408
}
You can’t perform that action at this time.
0 commit comments