@@ -41,7 +41,7 @@ fn map_symbol(
4141 symbol : & object:: Symbol ,
4242 section_indices : & [ usize ] ,
4343 split_meta : Option < & SplitMeta > ,
44- diff_config : & DiffObjConfig
44+ diff_config : & DiffObjConfig ,
4545) -> Result < Symbol > {
4646 let mut name = symbol. name ( ) . context ( "Failed to process symbol name" ) ?. to_string ( ) ;
4747 let mut size = symbol. size ( ) ;
@@ -118,7 +118,8 @@ fn map_symbols(
118118 if symbol_indices. len ( ) <= obj_symbol. index ( ) . 0 {
119119 symbol_indices. resize ( obj_symbol. index ( ) . 0 + 1 , usize:: MAX ) ;
120120 }
121- let symbol = map_symbol ( arch, obj_file, & obj_symbol, section_indices, split_meta, diff_config) ?;
121+ let symbol =
122+ map_symbol ( arch, obj_file, & obj_symbol, section_indices, split_meta, diff_config) ?;
122123 symbol_indices[ obj_symbol. index ( ) . 0 ] = symbols. len ( ) ;
123124 symbols. push ( symbol) ;
124125 }
@@ -937,8 +938,14 @@ pub fn parse(data: &[u8], config: &DiffObjConfig) -> Result<Object> {
937938 let split_meta = parse_split_meta ( & obj_file) ?;
938939 let ( mut sections, section_indices) =
939940 map_sections ( arch. as_ref ( ) , & obj_file, split_meta. as_ref ( ) ) ?;
940- let ( mut symbols, symbol_indices) =
941- map_symbols ( arch. as_ref ( ) , & obj_file, & sections, & section_indices, split_meta. as_ref ( ) , config) ?;
941+ let ( mut symbols, symbol_indices) = map_symbols (
942+ arch. as_ref ( ) ,
943+ & obj_file,
944+ & sections,
945+ & section_indices,
946+ split_meta. as_ref ( ) ,
947+ config,
948+ ) ?;
942949 map_relocations ( arch. as_ref ( ) , & obj_file, & mut sections, & section_indices, & symbol_indices) ?;
943950 parse_line_info ( & obj_file, & mut sections, & section_indices, data) ?;
944951 if config. combine_data_sections || config. combine_text_sections {
0 commit comments