Skip to content

Commit

Permalink
remove use of vec where an array works too
Browse files Browse the repository at this point in the history
  • Loading branch information
antonilol committed May 1, 2024
1 parent 1feacfa commit 907a4df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/subscribe/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ mod tests {
fn test_invalid_data_len() {
const LEN: usize = 8 * 1024 * 1024;
let megabytes = vec![0; LEN];
let multipart = vec![
let multipart = [
zmq::Message::from("topic"),
zmq::Message::from(megabytes),
zmq::Message::from(&[0x00u8, 0x00, 0x00, 0x00] as &[u8]),
Expand Down

0 comments on commit 907a4df

Please sign in to comment.