mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-11 10:55:31 +03:00
chore: cargo fmt
This commit is contained in:
parent
43f970f813
commit
3edc551043
@ -18,12 +18,12 @@ use std::{
|
||||
time::Instant,
|
||||
};
|
||||
|
||||
use crate::util::{is_roc_definition, is_roc_undefined, report_timing};
|
||||
use crate::{
|
||||
align_by_constraint, align_to_offset_by_constraint, load_struct_inplace,
|
||||
load_struct_inplace_mut, load_structs_inplace, load_structs_inplace_mut, open_mmap,
|
||||
open_mmap_mut,
|
||||
};
|
||||
use crate::util::{report_timing, is_roc_undefined, is_roc_definition};
|
||||
|
||||
const MIN_SECTION_ALIGNMENT: usize = 0x40;
|
||||
|
||||
|
@ -19,10 +19,8 @@ use roc_collections::{MutMap, VecMap};
|
||||
use roc_error_macros::internal_error;
|
||||
|
||||
use crate::{
|
||||
generate_dylib::APP_DLL,
|
||||
load_struct_inplace, load_struct_inplace_mut, load_structs_inplace_mut, open_mmap,
|
||||
open_mmap_mut,
|
||||
util::is_roc_definition,
|
||||
generate_dylib::APP_DLL, load_struct_inplace, load_struct_inplace_mut,
|
||||
load_structs_inplace_mut, open_mmap, open_mmap_mut, util::is_roc_definition,
|
||||
};
|
||||
|
||||
/// The metadata stores information about/from the host .exe because
|
||||
@ -193,10 +191,7 @@ pub(crate) fn preprocess_windows(
|
||||
Ok(obj) => obj,
|
||||
Err(e) => internal_error!("Failed to parse shared library file: {e}"),
|
||||
};
|
||||
let dummy_dll_symbols = shared_lib_obj
|
||||
.symbols()
|
||||
.filter(is_roc_definition)
|
||||
.count();
|
||||
let dummy_dll_symbols = shared_lib_obj.symbols().filter(is_roc_definition).count();
|
||||
|
||||
let new_sections = [*b".text\0\0\0", *b".rdata\0\0"];
|
||||
let mut preprocessed = Preprocessor::preprocess(
|
||||
|
Loading…
Reference in New Issue
Block a user