@@ -11,10 +11,12 @@ use anyhow::{Context, Result, anyhow, bail, ensure};
11
11
use object:: { Object as _, ObjectSection as _, ObjectSymbol as _} ;
12
12
13
13
use crate :: {
14
- arch:: { new_arch , Arch , RelocationOverride , RelocationOverrideTarget } ,
14
+ arch:: { Arch , RelocationOverride , RelocationOverrideTarget , new_arch } ,
15
15
diff:: DiffObjConfig ,
16
16
obj:: {
17
- split_meta:: { SplitMeta , SPLITMETA_SECTION } , DiffSide , FlowAnalysisResult , Object , Relocation , RelocationFlags , Section , SectionData , SectionFlag , SectionKind , Symbol , SymbolFlag , SymbolKind
17
+ DiffSide , FlowAnalysisResult , Object , Relocation , RelocationFlags , Section , SectionData ,
18
+ SectionFlag , SectionKind , Symbol , SymbolFlag , SymbolKind ,
19
+ split_meta:: { SPLITMETA_SECTION , SplitMeta } ,
18
20
} ,
19
21
util:: { align_data_slice_to, align_u64_to, read_u16, read_u32} ,
20
22
} ;
@@ -923,7 +925,11 @@ fn do_combine_sections(
923
925
}
924
926
925
927
#[ cfg( feature = "std" ) ]
926
- pub fn read ( obj_path : & std:: path:: Path , config : & DiffObjConfig , diff_side : DiffSide ) -> Result < Object > {
928
+ pub fn read (
929
+ obj_path : & std:: path:: Path ,
930
+ config : & DiffObjConfig ,
931
+ diff_side : DiffSide ,
932
+ ) -> Result < Object > {
927
933
let ( data, timestamp) = {
928
934
let file = std:: fs:: File :: open ( obj_path) ?;
929
935
let timestamp = filetime:: FileTime :: from_last_modification_time ( & file. metadata ( ) ?) ;
0 commit comments