Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
AngheloAlf committed Nov 5, 2023
1 parent 647e4d1 commit 44e6190
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/rs/mapfile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,8 @@ impl MapFile {

let regex_segment_entry = Regex::new(r"^(?P<name>[^\s]+)$").unwrap();
let regex_fill = Regex::new(r"^\s+(?P<expr>\.\s*\+=\s*.+)$").unwrap();
let regex_file_data_entry = Regex::new(r"^\s+(?P<name>[^\s]+):\((?P<section>[^\s()]+)\)$$").unwrap();
let regex_file_data_entry =
Regex::new(r"^\s+(?P<name>[^\s]+):\((?P<section>[^\s()]+)\)$$").unwrap();
let regex_label = Regex::new(r"^\s+(?P<name>\.?L[0-9A-F]{8})$").unwrap();
let regex_symbol_entry = Regex::new(r"^\s+(?P<name>[^\s]+)$").unwrap();

Expand All @@ -308,7 +309,8 @@ impl MapFile {
if let Some(segment_entry_match) = regex_segment_entry.captures(subline) {
let name = &segment_entry_match["name"];

let mut new_segment = segment::Segment::new_default(name.into(), vram, size, vrom);
let mut new_segment =
segment::Segment::new_default(name.into(), vram, size, vrom);
new_segment.align = Some(align);

temp_segment_list.push(new_segment);
Expand Down Expand Up @@ -341,7 +343,8 @@ impl MapFile {
if size > 0 {
let current_segment = temp_segment_list.last_mut().unwrap();

let mut new_file = file::File::new_default(filepath, vram, size, section_type);
let mut new_file =
file::File::new_default(filepath, vram, size, section_type);
if !utils::is_noload_section(section_type) {
new_file.vrom = Some(vrom);
}
Expand Down

0 comments on commit 44e6190

Please sign in to comment.