Skip to content

Commit

Permalink
fix new test in no-alloc mode
Browse files Browse the repository at this point in the history
  • Loading branch information
dwrensha committed Nov 15, 2023
1 parent efd0af2 commit e74c84e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions capnp/tests/serialize_read_message_no_alloc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ pub fn serialize_read_message_no_alloc() {
let mut msg = message::Builder::new(allocator);
msg.set_root("hello world!").unwrap();

let mut out_buffer = Word::allocate_zeroed_vec(512);
let mut out_buffer = [capnp::word(0, 0, 0, 0, 0, 0, 0, 0); 256];

serialize::write_message(Word::words_to_bytes_mut(&mut out_buffer), &msg).unwrap();

let mut read_buffer = Word::allocate_zeroed_vec(512);
let mut read_buffer = [capnp::word(0, 0, 0, 0, 0, 0, 0, 0); 256];

let reader = serialize::read_message_no_alloc(
&mut Word::words_to_bytes(&out_buffer),
Expand Down

0 comments on commit e74c84e

Please sign in to comment.