Skip to content

Commit

Permalink
Remove unnecessary vec![] in a test
Browse files Browse the repository at this point in the history
found via clippy
  • Loading branch information
cole14 committed Sep 21, 2023
1 parent b7067d3 commit df7a738
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parse.rs
Expand Up @@ -495,7 +495,7 @@ mod parsing_table_tests {

#[test]
fn test_u32_table_get_unaligned() {
let data = vec![0u8, 1, 2, 3, 4, 5, 6, 7];
let data = [0u8, 1, 2, 3, 4, 5, 6, 7];
let table = U32Table::new(LittleEndian, Class::ELF32, data.get(1..).unwrap());
assert!(matches!(table.get(0), Ok(0x04030201)));
}
Expand Down

0 comments on commit df7a738

Please sign in to comment.