@@ -673,31 +673,31 @@ impl<'a, S: Source<'a> + 'a> PDBParserInstance<'a, S> {
673
673
// TODO: Pointer suffix is not exposed
674
674
match data. indirection {
675
675
Some ( Indirection :: Near16 ) => Ok ( Some ( Box :: new ( ParsedType :: Bare ( Type :: pointer (
676
- & self . arch ,
676
+ self . arch ,
677
677
base. as_ref ( ) ,
678
678
) ) ) ) ) ,
679
679
Some ( Indirection :: Far16 ) => Ok ( Some ( Box :: new ( ParsedType :: Bare ( Type :: pointer (
680
- & self . arch ,
680
+ self . arch ,
681
681
base. as_ref ( ) ,
682
682
) ) ) ) ) ,
683
683
Some ( Indirection :: Huge16 ) => Ok ( Some ( Box :: new ( ParsedType :: Bare ( Type :: pointer (
684
- & self . arch ,
684
+ self . arch ,
685
685
base. as_ref ( ) ,
686
686
) ) ) ) ) ,
687
687
Some ( Indirection :: Near32 ) => Ok ( Some ( Box :: new ( ParsedType :: Bare ( Type :: pointer (
688
- & self . arch ,
688
+ self . arch ,
689
689
base. as_ref ( ) ,
690
690
) ) ) ) ) ,
691
691
Some ( Indirection :: Far32 ) => Ok ( Some ( Box :: new ( ParsedType :: Bare ( Type :: pointer (
692
- & self . arch ,
692
+ self . arch ,
693
693
base. as_ref ( ) ,
694
694
) ) ) ) ) ,
695
695
Some ( Indirection :: Near64 ) => Ok ( Some ( Box :: new ( ParsedType :: Bare ( Type :: pointer (
696
- & self . arch ,
696
+ self . arch ,
697
697
base. as_ref ( ) ,
698
698
) ) ) ) ) ,
699
699
Some ( Indirection :: Near128 ) => Ok ( Some ( Box :: new ( ParsedType :: Bare ( Type :: pointer (
700
- & self . arch ,
700
+ self . arch ,
701
701
base. as_ref ( ) ,
702
702
) ) ) ) ) ,
703
703
None => Ok ( Some ( Box :: new ( ParsedType :: Bare ( base) ) ) ) ,
@@ -843,10 +843,7 @@ impl<'a, S: Source<'a> + 'a> PDBParserInstance<'a, S> {
843
843
Type :: structure ( builder. finalize ( ) . as_ref ( ) ) ,
844
844
max_confidence ( ) ,
845
845
) ,
846
- name : bitfield_name (
847
- last_bitfield_offset,
848
- last_bitfield_idx,
849
- ) ,
846
+ name : bitfield_name ( last_bitfield_offset, last_bitfield_idx) ,
850
847
offset : last_bitfield_offset,
851
848
access : MemberAccess :: PublicAccess ,
852
849
scope : MemberScope :: NoScope ,
@@ -880,10 +877,7 @@ impl<'a, S: Source<'a> + 'a> PDBParserInstance<'a, S> {
880
877
Type :: structure ( builder. finalize ( ) . as_ref ( ) ) ,
881
878
max_confidence ( ) ,
882
879
) ,
883
- name : bitfield_name (
884
- last_bitfield_offset,
885
- last_bitfield_idx,
886
- ) ,
880
+ name : bitfield_name ( last_bitfield_offset, last_bitfield_idx) ,
887
881
offset : last_bitfield_offset,
888
882
access : MemberAccess :: PublicAccess ,
889
883
scope : MemberScope :: NoScope ,
@@ -1081,7 +1075,7 @@ impl<'a, S: Source<'a> + 'a> PDBParserInstance<'a, S> {
1081
1075
for ( offset, ( name, method) ) in virt_methods {
1082
1076
vt. insert (
1083
1077
& Conf :: new (
1084
- Type :: pointer ( & self . arch , & Conf :: new ( method. method_type , max_confidence ( ) ) ) ,
1078
+ Type :: pointer ( self . arch , & Conf :: new ( method. method_type , max_confidence ( ) ) ) ,
1085
1079
max_confidence ( ) ,
1086
1080
) ,
1087
1081
& name,
@@ -1106,7 +1100,7 @@ impl<'a, S: Source<'a> + 'a> PDBParserInstance<'a, S> {
1106
1100
self . named_types . insert ( vt_name. clone ( ) , vt_type. clone ( ) ) ;
1107
1101
1108
1102
let vt_pointer = Type :: pointer (
1109
- & self . arch ,
1103
+ self . arch ,
1110
1104
& Conf :: new (
1111
1105
Type :: named_type_from_type ( & QualifiedName :: from ( vt_name) , vt_type. as_ref ( ) ) ,
1112
1106
max_confidence ( ) ,
@@ -1224,7 +1218,7 @@ impl<'a, S: Source<'a> + 'a> PDBParserInstance<'a, S> {
1224
1218
// Return UDT??
1225
1219
// This probably means the return value got pushed to the stack
1226
1220
fancy_return_type = Type :: pointer (
1227
- & self . arch ,
1221
+ self . arch ,
1228
1222
& Conf :: new ( return_type. clone ( ) , max_confidence ( ) ) ,
1229
1223
) ;
1230
1224
fancy_arguments. insert (
@@ -1507,7 +1501,7 @@ impl<'a, S: Source<'a> + 'a> PDBParserInstance<'a, S> {
1507
1501
if return_stacky {
1508
1502
// Stack return via a pointer in the first parameter
1509
1503
fancy_return_type =
1510
- Conf :: new ( Type :: pointer ( & self . arch , & return_type) , max_confidence ( ) ) ;
1504
+ Conf :: new ( Type :: pointer ( self . arch , & return_type) , max_confidence ( ) ) ;
1511
1505
fancy_arguments. insert (
1512
1506
0 ,
1513
1507
FunctionParameter :: new ( fancy_return_type. clone ( ) , "__return" . to_string ( ) , None ) ,
@@ -1562,7 +1556,7 @@ impl<'a, S: Source<'a> + 'a> PDBParserInstance<'a, S> {
1562
1556
1563
1557
if let Some ( base) = base {
1564
1558
Ok ( Some ( Box :: new ( ParsedType :: Bare ( Type :: pointer (
1565
- & self . arch ,
1559
+ self . arch ,
1566
1560
base. as_ref ( ) ,
1567
1561
) ) ) ) )
1568
1562
} else {
0 commit comments