11use std:: {
22 borrow:: Cow ,
3- collections:: { hash_map :: DefaultHasher , HashMap , HashSet } ,
3+ collections:: { HashMap , HashSet , hash_map :: DefaultHasher } ,
44 hash:: Hasher as _,
55 io:: Write as _,
66 marker:: PhantomData ,
@@ -9,13 +9,13 @@ use std::{
99
1010use gimli:: { DW_TAG_pointer_type , DW_TAG_structure_type , DW_TAG_variant_part } ;
1111use llvm_sys:: { core:: * , debuginfo:: * , prelude:: * } ;
12- use tracing:: { span, trace, warn, Level } ;
12+ use tracing:: { Level , span, trace, warn} ;
1313
1414use super :: types:: {
1515 di:: DIType ,
1616 ir:: { Function , MDNode , Metadata , Value } ,
1717} ;
18- use crate :: llvm:: { iter:: * , types:: di:: DISubprogram , LLVMContext , LLVMModule } ;
18+ use crate :: llvm:: { LLVMContext , LLVMModule , iter:: * , types:: di:: DISubprogram } ;
1919
2020// KSYM_NAME_LEN from linux kernel intentionally set
2121// to lower value found across kernel versions to ensure
@@ -108,7 +108,10 @@ impl<'ctx> DISanitizer<'ctx> {
108108 . to_string ( ) ;
109109 trace ! (
110110 "found data carrying enum {name} ({filename}:{line}), not emitting the debug info for it" ,
111- filename = file. filename( ) . map_or( "<unknown>" . into( ) , String :: from_utf8_lossy) ,
111+ filename = file. filename( ) . map_or(
112+ "<unknown>" . into( ) ,
113+ String :: from_utf8_lossy
114+ ) ,
112115 line = di_composite_type. line( ) ,
113116 ) ;
114117 self . skipped_types_lossy . push ( name) ;
0 commit comments