Skip to content

Commit

Permalink
Merge pull request #168 from wackbyte/vec-init
Browse files Browse the repository at this point in the history
Fix `Vec` initialization in test
  • Loading branch information
Manishearth authored Jan 12, 2024
2 parents c59de1d + 82221a9 commit 0169264
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/unstructured.rs
Original file line number Diff line number Diff line change
Expand Up @@ -876,8 +876,7 @@ mod tests {
// Should take one byte off the end
assert_eq!(u.arbitrary_byte_size().unwrap(), 6);
assert_eq!(u.len(), 9);
let mut v = vec![];
v.resize(260, 0);
let mut v = vec![0; 260];
v.push(1);
v.push(4);
let mut u = Unstructured::new(&v);
Expand Down

0 comments on commit 0169264

Please sign in to comment.