diff options
| author | Ian McIntyre <me@mciantyre.dev> | 2025-09-23 07:52:40 -0400 |
|---|---|---|
| committer | Ian McIntyre <me@mciantyre.dev> | 2025-09-23 07:52:54 -0400 |
| commit | 439036a6f49663e99779b7c88209999e2b34d28f (patch) | |
| tree | a4bfc92190108192dfde4a50a20ef75b109f2bd5 /tests/inspect_elf.rs | |
| parent | aed7296b291c6430e24e6bd4c787cd724830d956 (diff) | |
Fix latest clippy warnings
Diffstat (limited to 'tests/inspect_elf.rs')
| -rw-r--r-- | tests/inspect_elf.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/inspect_elf.rs b/tests/inspect_elf.rs index e9a8f73..f0ca005 100644 --- a/tests/inspect_elf.rs +++ b/tests/inspect_elf.rs @@ -255,7 +255,7 @@ fn imxrt1010evk() { "vector table not at expected VMA behind the stack" ); assert!( - vector_table.address % 1024 == 0, + vector_table.address.is_multiple_of(1024), "vector table is not 1024-byte aligned" ); assert_eq!(binary.section_lma(".vector_table"), 0x6000_2000); @@ -372,7 +372,7 @@ fn baseline_teensy4(binary: &ImxrtBinary, dcd_at_runtime: u32, stack_size: u64, "vector table not at expected VMA behind the stack" ); assert!( - vector_table.address % 1024 == 0, + vector_table.address.is_multiple_of(1024), "vector table is not 1024-byte aligned" ); assert_eq!(binary.section_lma(".vector_table"), 0x6000_2000); @@ -592,7 +592,7 @@ fn imxrt1170evk_cm7() { "vector table not at expected VMA behind the stack" ); assert!( - vector_table.address % 1024 == 0, + vector_table.address.is_multiple_of(1024), "vector table is not 1024-byte aligned" ); assert_eq!(binary.section_lma(".vector_table"), 0x3000_2000); @@ -714,7 +714,7 @@ fn imxrt1170evk_cm7_nonboot() { "vector table not at expected VMA behind the stack" ); assert!( - vector_table.address % 1024 == 0, + vector_table.address.is_multiple_of(1024), "vector table is not 1024-byte aligned" ); assert_eq!( |
