Skip to content

Commit 51e681e

Browse files
committed
activate
1 parent 8d25c2a commit 51e681e

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

riffle-server/src/store/local/uring_io.rs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -380,16 +380,19 @@ impl LocalIO for UringIo {
380380
let (tx, rx) = oneshot::channel();
381381
let tag = options.data.len();
382382
let shard = &self.write_txs[tag % self.write_txs.len()];
383+
383384
let bufs = options
384385
.data
385386
.always_bytes()
386387
.iter_mut()
387-
.map(|x| x.as_ref())
388-
.map(|mut x| RawBuf {
389-
ptr: x.as_mut_ptr(),
390-
len: x.len() as _,
388+
.map(|bytes| {
389+
let slice: &mut [u8] = bytes.as_mut();
390+
RawBuf {
391+
ptr: slice.as_mut_ptr(),
392+
len: slice.len(),
393+
}
391394
})
392-
.collect();
395+
.collect::<Vec<_>>();
393396

394397
let path = self.with_root(path);
395398
let path = Path::new(&path);

0 commit comments

Comments
 (0)