From 1254c9f8dbe4d9d7021167bfbc5a8e700fcfad22 Mon Sep 17 00:00:00 2001 From: Folkert Date: Wed, 28 Sep 2022 20:39:16 +0200 Subject: [PATCH] clippy --- crates/linker/src/elf.rs | 2 +- crates/linker/src/pe.rs | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/crates/linker/src/elf.rs b/crates/linker/src/elf.rs index 1826fe469b..794223e27f 100644 --- a/crates/linker/src/elf.rs +++ b/crates/linker/src/elf.rs @@ -19,7 +19,7 @@ use std::time::{Duration, Instant}; use crate::metadata::{self, Metadata, VirtualOffset}; use crate::{ - align_by_constraint, align_to_offset_by_constraint, dbg_hex, load_struct_inplace, + align_by_constraint, align_to_offset_by_constraint, load_struct_inplace, load_struct_inplace_mut, load_structs_inplace_mut, open_mmap, open_mmap_mut, }; diff --git a/crates/linker/src/pe.rs b/crates/linker/src/pe.rs index 38c40c2fe1..8e57dd5609 100644 --- a/crates/linker/src/pe.rs +++ b/crates/linker/src/pe.rs @@ -20,8 +20,7 @@ use roc_collections::{MutMap, VecMap}; use roc_error_macros::internal_error; use crate::{ - dbg_hex, generate_dylib::APP_DLL, load_struct_inplace, load_struct_inplace_mut, open_mmap, - open_mmap_mut, + generate_dylib::APP_DLL, load_struct_inplace, load_struct_inplace_mut, open_mmap, open_mmap_mut, }; /// The metadata stores information about/from the host .exe because @@ -935,8 +934,6 @@ impl AppSections { for symbol in file.symbols() { use object::ObjectSymbol; - let name = String::from_utf8_lossy(symbol.name_bytes().unwrap_or_default()); - if symbol.name_bytes().unwrap_or_default().starts_with(b"roc") { if let object::SymbolSection::Section(index) = symbol.section() { let (kind, offset_in_host_section) = section_starts[&index];