@@ -1759,9 +1759,8 @@ impl<'a, S: Source<'a> + 'a> PDBParserInstance<'a, S> {
17591759 structure. width ( data. size ) ;
17601760
17611761 self . namespace_stack . push ( union_name. to_string ( ) ) ;
1762- let success = self . parse_union_fields ( & mut structure, data. fields , finder) ;
1762+ let _success = self . parse_union_fields ( & mut structure, data. fields , finder) ;
17631763 self . namespace_stack . pop ( ) ;
1764- let _ = success?;
17651764
17661765 let new_type = Type :: structure ( structure. finalize ( ) . as_ref ( ) ) ;
17671766 Ok ( Some ( Box :: new ( ParsedType :: Named ( union_name, new_type) ) ) )
@@ -2015,7 +2014,11 @@ impl<'a, S: Source<'a> + 'a> PDBParserInstance<'a, S> {
20152014 // for some reason
20162015 if let Some ( raw_name) = Self :: type_data_to_raw_name ( & parsed) {
20172016 if let Some ( & full_index) = self . full_type_indices . get ( & raw_name) {
2018- if let None = self . type_stack . iter ( ) . find ( |& & idx| idx == full_index)
2017+ if self
2018+ . type_stack
2019+ . iter ( )
2020+ . find ( |& & idx| idx == full_index)
2021+ . is_none ( )
20192022 {
20202023 if full_index != index {
20212024 return self . try_type_index_to_bare (
@@ -2050,8 +2053,11 @@ impl<'a, S: Source<'a> + 'a> PDBParserInstance<'a, S> {
20502053 // for some reason
20512054 if let Some ( raw_name) = Self :: type_data_to_raw_name ( & parsed) {
20522055 if let Some ( & full_index) = self . full_type_indices . get ( & raw_name) {
2053- if let None =
2054- self . type_stack . iter ( ) . find ( |& & idx| idx == full_index)
2056+ if self
2057+ . type_stack
2058+ . iter ( )
2059+ . find ( |& & idx| idx == full_index)
2060+ . is_none ( )
20552061 {
20562062 if full_index != index {
20572063 return self . try_type_index_to_bare (
0 commit comments