@@ -673,31 +673,31 @@ impl<'a, S: Source<'a> + 'a> PDBParserInstance<'a, S> {
673673 // TODO: Pointer suffix is not exposed
674674 match data. indirection {
675675 Some ( Indirection :: Near16 ) => Ok ( Some ( Box :: new ( ParsedType :: Bare ( Type :: pointer (
676- & self . arch ,
676+ self . arch ,
677677 base. as_ref ( ) ,
678678 ) ) ) ) ) ,
679679 Some ( Indirection :: Far16 ) => Ok ( Some ( Box :: new ( ParsedType :: Bare ( Type :: pointer (
680- & self . arch ,
680+ self . arch ,
681681 base. as_ref ( ) ,
682682 ) ) ) ) ) ,
683683 Some ( Indirection :: Huge16 ) => Ok ( Some ( Box :: new ( ParsedType :: Bare ( Type :: pointer (
684- & self . arch ,
684+ self . arch ,
685685 base. as_ref ( ) ,
686686 ) ) ) ) ) ,
687687 Some ( Indirection :: Near32 ) => Ok ( Some ( Box :: new ( ParsedType :: Bare ( Type :: pointer (
688- & self . arch ,
688+ self . arch ,
689689 base. as_ref ( ) ,
690690 ) ) ) ) ) ,
691691 Some ( Indirection :: Far32 ) => Ok ( Some ( Box :: new ( ParsedType :: Bare ( Type :: pointer (
692- & self . arch ,
692+ self . arch ,
693693 base. as_ref ( ) ,
694694 ) ) ) ) ) ,
695695 Some ( Indirection :: Near64 ) => Ok ( Some ( Box :: new ( ParsedType :: Bare ( Type :: pointer (
696- & self . arch ,
696+ self . arch ,
697697 base. as_ref ( ) ,
698698 ) ) ) ) ) ,
699699 Some ( Indirection :: Near128 ) => Ok ( Some ( Box :: new ( ParsedType :: Bare ( Type :: pointer (
700- & self . arch ,
700+ self . arch ,
701701 base. as_ref ( ) ,
702702 ) ) ) ) ) ,
703703 None => Ok ( Some ( Box :: new ( ParsedType :: Bare ( base) ) ) ) ,
@@ -843,10 +843,7 @@ impl<'a, S: Source<'a> + 'a> PDBParserInstance<'a, S> {
843843 Type :: structure ( builder. finalize ( ) . as_ref ( ) ) ,
844844 max_confidence ( ) ,
845845 ) ,
846- name : bitfield_name (
847- last_bitfield_offset,
848- last_bitfield_idx,
849- ) ,
846+ name : bitfield_name ( last_bitfield_offset, last_bitfield_idx) ,
850847 offset : last_bitfield_offset,
851848 access : MemberAccess :: PublicAccess ,
852849 scope : MemberScope :: NoScope ,
@@ -880,10 +877,7 @@ impl<'a, S: Source<'a> + 'a> PDBParserInstance<'a, S> {
880877 Type :: structure ( builder. finalize ( ) . as_ref ( ) ) ,
881878 max_confidence ( ) ,
882879 ) ,
883- name : bitfield_name (
884- last_bitfield_offset,
885- last_bitfield_idx,
886- ) ,
880+ name : bitfield_name ( last_bitfield_offset, last_bitfield_idx) ,
887881 offset : last_bitfield_offset,
888882 access : MemberAccess :: PublicAccess ,
889883 scope : MemberScope :: NoScope ,
@@ -1081,7 +1075,7 @@ impl<'a, S: Source<'a> + 'a> PDBParserInstance<'a, S> {
10811075 for ( offset, ( name, method) ) in virt_methods {
10821076 vt. insert (
10831077 & 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 ( ) ) ) ,
10851079 max_confidence ( ) ,
10861080 ) ,
10871081 & name,
@@ -1106,7 +1100,7 @@ impl<'a, S: Source<'a> + 'a> PDBParserInstance<'a, S> {
11061100 self . named_types . insert ( vt_name. clone ( ) , vt_type. clone ( ) ) ;
11071101
11081102 let vt_pointer = Type :: pointer (
1109- & self . arch ,
1103+ self . arch ,
11101104 & Conf :: new (
11111105 Type :: named_type_from_type ( & QualifiedName :: from ( vt_name) , vt_type. as_ref ( ) ) ,
11121106 max_confidence ( ) ,
@@ -1224,7 +1218,7 @@ impl<'a, S: Source<'a> + 'a> PDBParserInstance<'a, S> {
12241218 // Return UDT??
12251219 // This probably means the return value got pushed to the stack
12261220 fancy_return_type = Type :: pointer (
1227- & self . arch ,
1221+ self . arch ,
12281222 & Conf :: new ( return_type. clone ( ) , max_confidence ( ) ) ,
12291223 ) ;
12301224 fancy_arguments. insert (
@@ -1507,7 +1501,7 @@ impl<'a, S: Source<'a> + 'a> PDBParserInstance<'a, S> {
15071501 if return_stacky {
15081502 // Stack return via a pointer in the first parameter
15091503 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 ( ) ) ;
15111505 fancy_arguments. insert (
15121506 0 ,
15131507 FunctionParameter :: new ( fancy_return_type. clone ( ) , "__return" . to_string ( ) , None ) ,
@@ -1562,7 +1556,7 @@ impl<'a, S: Source<'a> + 'a> PDBParserInstance<'a, S> {
15621556
15631557 if let Some ( base) = base {
15641558 Ok ( Some ( Box :: new ( ParsedType :: Bare ( Type :: pointer (
1565- & self . arch ,
1559+ self . arch ,
15661560 base. as_ref ( ) ,
15671561 ) ) ) ) )
15681562 } else {
0 commit comments