mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
clippy
This commit is contained in:
parent
4780144e38
commit
1254c9f8db
2 changed files with 2 additions and 5 deletions
|
@ -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,
|
||||
};
|
||||
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue