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