Skip to content

Commit 6e3d43d

Browse files
authored
minor: bump clippy version to 1.64 (#769)
1 parent 5ad1c61 commit 6e3d43d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.evergreen/check-clippy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ source ./.evergreen/configure-rust.sh
66
source ./.evergreen/feature-combinations.sh
77

88
# Pin clippy to the latest version. This should be updated when new versions of Rust are released.
9-
CLIPPY_VERSION=1.63.0
9+
CLIPPY_VERSION=1.64.0
1010

1111
rustup install $CLIPPY_VERSION
1212

src/operation/insert/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ impl<'a, T: Serialize> OperationWithDefaults for Insert<'a, T> {
100100

101101
// overwrite old length
102102
let new_length = (bytes.len() as i32).to_le_bytes();
103-
(&mut bytes[0..4]).copy_from_slice(&new_length);
103+
bytes[0..4].copy_from_slice(&new_length);
104104
doc = RawDocumentBuf::from_bytes(bytes)?;
105105

106106
Bson::ObjectId(oid)

0 commit comments

Comments
 (0)