|
@@ -90,7 +90,7 @@ impl Client {
|
|
Ok(Command::PreProc(num_preproc)) => {
|
|
Ok(Command::PreProc(num_preproc)) => {
|
|
// Ensure we don't already have outstanding
|
|
// Ensure we don't already have outstanding
|
|
// preprocessing state
|
|
// preprocessing state
|
|
- assert!(preproc_out_state.len() == 0);
|
|
|
|
|
|
+ assert!(preproc_out_state.is_empty());
|
|
let mut preproc_msg: Vec<PreProcSingleMsg> = Vec::new();
|
|
let mut preproc_msg: Vec<PreProcSingleMsg> = Vec::new();
|
|
for _ in 0..num_preproc {
|
|
for _ in 0..num_preproc {
|
|
let rand_idx = (rng.next_u64() as usize) & num_records_mask;
|
|
let rand_idx = (rng.next_u64() as usize) & num_records_mask;
|
|
@@ -265,7 +265,7 @@ pub extern "C" fn spir_client_preproc_finish(
|
|
assert!(!msgdata.is_null());
|
|
assert!(!msgdata.is_null());
|
|
std::slice::from_raw_parts(msgdata, msglen)
|
|
std::slice::from_raw_parts(msgdata, msglen)
|
|
};
|
|
};
|
|
- client.preproc_finish(&msg_slice);
|
|
|
|
|
|
+ client.preproc_finish(msg_slice);
|
|
}
|
|
}
|
|
|
|
|
|
#[no_mangle]
|
|
#[no_mangle]
|
|
@@ -292,5 +292,5 @@ pub extern "C" fn spir_client_query_finish(
|
|
assert!(!msgdata.is_null());
|
|
assert!(!msgdata.is_null());
|
|
std::slice::from_raw_parts(msgdata, msglen)
|
|
std::slice::from_raw_parts(msgdata, msglen)
|
|
};
|
|
};
|
|
- client.query_finish(&msg_slice)
|
|
|
|
|
|
+ client.query_finish(msg_slice)
|
|
}
|
|
}
|