diff --git a/src/it/test_config.rs b/src/it/test_config.rs index 9bb1c8b6..ebc190e4 100644 --- a/src/it/test_config.rs +++ b/src/it/test_config.rs @@ -76,7 +76,7 @@ unsafe extern "C" fn unref(data: *const u8) { unsafe extern "C" fn handle_msg(data: *const u8, msg: *const u8, size: usize) { let tc = &*data.cast::(); let msg = std::slice::from_raw_parts(msg, size); - let res = bincode::decode_from_slice::(msg, bincode_ops()); + let res = bincode::borrow_decode_from_slice::(msg, bincode_ops()); let (msg, _) = match res { Ok(msg) => msg, Err(e) => {