mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-11 10:55:31 +03:00
run cargo clippy --fix
This commit is contained in:
parent
86417a8457
commit
1a800ef228
@ -1536,8 +1536,8 @@ fn surgery_elf_help(
|
||||
sh_name: endian::U32::new(LE, 0),
|
||||
sh_type: endian::U32::new(LE, elf::SHT_PROGBITS),
|
||||
sh_flags: endian::U64::new(LE, elf::SHF_ALLOC as u64),
|
||||
sh_addr: endian::U64::new(LE, new_rodata_section_vaddr as u64),
|
||||
sh_offset: endian::U64::new(LE, new_rodata_section_offset as u64),
|
||||
sh_addr: endian::U64::new(LE, new_rodata_section_vaddr),
|
||||
sh_offset: endian::U64::new(LE, new_rodata_section_offset),
|
||||
sh_size: endian::U64::new(LE, new_rodata_section_size),
|
||||
sh_link: endian::U32::new(LE, 0),
|
||||
sh_info: endian::U32::new(LE, 0),
|
||||
@ -1551,7 +1551,7 @@ fn surgery_elf_help(
|
||||
sh_type: endian::U32::new(LE, elf::SHT_NOBITS),
|
||||
sh_flags: endian::U64::new(LE, (elf::SHF_ALLOC) as u64),
|
||||
sh_addr: endian::U64::new(LE, new_bss_section_vaddr),
|
||||
sh_offset: endian::U64::new(LE, new_bss_section_offset as u64),
|
||||
sh_offset: endian::U64::new(LE, new_bss_section_offset),
|
||||
sh_size: endian::U64::new(LE, new_bss_section_virtual_size),
|
||||
sh_link: endian::U32::new(LE, 0),
|
||||
sh_info: endian::U32::new(LE, 0),
|
||||
@ -1565,7 +1565,7 @@ fn surgery_elf_help(
|
||||
sh_type: endian::U32::new(LE, elf::SHT_PROGBITS),
|
||||
sh_flags: endian::U64::new(LE, (elf::SHF_ALLOC | elf::SHF_EXECINSTR) as u64),
|
||||
sh_addr: endian::U64::new(LE, new_text_section_vaddr),
|
||||
sh_offset: endian::U64::new(LE, new_text_section_offset as u64),
|
||||
sh_offset: endian::U64::new(LE, new_text_section_offset),
|
||||
sh_size: endian::U64::new(LE, new_text_section_size),
|
||||
sh_link: endian::U32::new(LE, 0),
|
||||
sh_info: endian::U32::new(LE, 0),
|
||||
@ -1591,9 +1591,9 @@ fn surgery_elf_help(
|
||||
program_headers[program_headers.len() - 3] = elf::ProgramHeader64 {
|
||||
p_type: endian::U32::new(LE, elf::PT_LOAD),
|
||||
p_flags: endian::U32::new(LE, elf::PF_R),
|
||||
p_offset: endian::U64::new(LE, new_rodata_section_offset as u64),
|
||||
p_vaddr: endian::U64::new(LE, new_rodata_section_vaddr as u64),
|
||||
p_paddr: endian::U64::new(LE, new_rodata_section_vaddr as u64),
|
||||
p_offset: endian::U64::new(LE, new_rodata_section_offset),
|
||||
p_vaddr: endian::U64::new(LE, new_rodata_section_vaddr),
|
||||
p_paddr: endian::U64::new(LE, new_rodata_section_vaddr),
|
||||
p_filesz: endian::U64::new(LE, new_rodata_section_size),
|
||||
p_memsz: endian::U64::new(LE, new_rodata_section_size),
|
||||
p_align: endian::U64::new(LE, md.load_align_constraint),
|
||||
@ -1603,9 +1603,9 @@ fn surgery_elf_help(
|
||||
program_headers[program_headers.len() - 2] = elf::ProgramHeader64 {
|
||||
p_type: endian::U32::new(LE, elf::PT_LOAD),
|
||||
p_flags: endian::U32::new(LE, elf::PF_R | elf::PF_W),
|
||||
p_offset: endian::U64::new(LE, new_bss_section_offset as u64),
|
||||
p_vaddr: endian::U64::new(LE, new_bss_section_vaddr as u64),
|
||||
p_paddr: endian::U64::new(LE, new_bss_section_vaddr as u64),
|
||||
p_offset: endian::U64::new(LE, new_bss_section_offset),
|
||||
p_vaddr: endian::U64::new(LE, new_bss_section_vaddr),
|
||||
p_paddr: endian::U64::new(LE, new_bss_section_vaddr),
|
||||
p_filesz: endian::U64::new(LE, 0),
|
||||
p_memsz: endian::U64::new(LE, new_bss_section_virtual_size),
|
||||
p_align: endian::U64::new(LE, md.load_align_constraint),
|
||||
@ -1616,7 +1616,7 @@ fn surgery_elf_help(
|
||||
program_headers[new_text_section_index] = elf::ProgramHeader64 {
|
||||
p_type: endian::U32::new(LE, elf::PT_LOAD),
|
||||
p_flags: endian::U32::new(LE, elf::PF_R | elf::PF_X),
|
||||
p_offset: endian::U64::new(LE, new_text_section_offset as u64),
|
||||
p_offset: endian::U64::new(LE, new_text_section_offset),
|
||||
p_vaddr: endian::U64::new(LE, new_text_section_vaddr),
|
||||
p_paddr: endian::U64::new(LE, new_text_section_vaddr),
|
||||
p_filesz: endian::U64::new(LE, new_text_section_size),
|
||||
|
Loading…
Reference in New Issue
Block a user