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 8d25c2a commit 51e681eCopy full SHA for 51e681e
riffle-server/src/store/local/uring_io.rs
@@ -380,16 +380,19 @@ impl LocalIO for UringIo {
380
let (tx, rx) = oneshot::channel();
381
let tag = options.data.len();
382
let shard = &self.write_txs[tag % self.write_txs.len()];
383
+
384
let bufs = options
385
.data
386
.always_bytes()
387
.iter_mut()
- .map(|x| x.as_ref())
388
- .map(|mut x| RawBuf {
389
- ptr: x.as_mut_ptr(),
390
- len: x.len() as _,
+ .map(|bytes| {
+ let slice: &mut [u8] = bytes.as_mut();
+ RawBuf {
391
+ ptr: slice.as_mut_ptr(),
392
+ len: slice.len(),
393
+ }
394
})
- .collect();
395
+ .collect::<Vec<_>>();
396
397
let path = self.with_root(path);
398
let path = Path::new(&path);
0 commit comments