Fix data diffing

This commit is contained in:
Luke Street 2023-01-17 19:33:31 -05:00
parent 20dcc50695
commit ba74d63a99
1 changed files with 1 additions and 3 deletions

View File

@ -14,9 +14,7 @@ use crate::{
const BYTES_PER_ROW: usize = 16; const BYTES_PER_ROW: usize = 16;
fn find_section<'a>(obj: &'a ObjInfo, selected_symbol: &SymbolReference) -> Option<&'a ObjSection> { fn find_section<'a>(obj: &'a ObjInfo, selected_symbol: &SymbolReference) -> Option<&'a ObjSection> {
obj.sections.iter().find(|section| { obj.sections.iter().find(|section| section.name == selected_symbol.section_name)
section.symbols.iter().any(|symbol| symbol.name == selected_symbol.symbol_name)
})
} }
fn data_row_ui(ui: &mut egui::Ui, address: usize, diffs: &[ObjDataDiff], config: &ViewConfig) { fn data_row_ui(ui: &mut egui::Ui, address: usize, diffs: &[ObjDataDiff], config: &ViewConfig) {