We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd79036 commit f771ea2Copy full SHA for f771ea2
src/lib/storage/block_client/rust/src/testing.rs
@@ -123,7 +123,7 @@ impl BlockClient for FakeBlockClient {
123
BufferSlice::Memory(slice) => {
124
let len = slice.len();
125
ensure!(device_offset + len <= inner.data.len(), "Invalid range");
126
- &mut inner.data[device_offset..device_offset + len].copy_from_slice(slice);
+ inner.data[device_offset..device_offset + len].copy_from_slice(slice);
127
Ok(())
128
}
129
0 commit comments