Skip to content

Commit

Permalink
follow Clippy's recommendation to remove some unneeded vec
Browse files Browse the repository at this point in the history
  • Loading branch information
dwrensha committed Sep 3, 2024
1 parent 70d22d5 commit d1e2156
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions capnp/src/serialize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,7 @@ pub mod test {

#[test]
fn read_message_from_flat_slice_with_remainder() {
let segments = vec![
let segments = [
vec![123, 0, 0, 0, 0, 0, 0, 0],
vec![4, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0],
];
Expand Down Expand Up @@ -1044,7 +1044,7 @@ pub mod test {

#[test]
fn read_message_from_flat_slice_too_short() {
let segments = vec![
let segments = [
vec![1, 0, 0, 0, 0, 0, 0, 0],
vec![2, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0],
];
Expand Down

0 comments on commit d1e2156

Please sign in to comment.