File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed
Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -1426,14 +1426,8 @@ impl<'db: 'slf, 'slf> Inferred {
14261426 Generics :: from_class_generics ( i_s. db , class_ref, & c. generics ) ,
14271427 None ,
14281428 ) ;
1429- if let Some ( inf) = potential_descriptor. bind_dunder_get (
1430- i_s,
1431- |i| {
1432- add_issue ( i) ;
1433- true
1434- } ,
1435- instance,
1436- ) {
1429+ if let Some ( inf) = potential_descriptor. bind_dunder_get ( i_s, |i| add_issue ( i) , instance)
1430+ {
14371431 return Some ( Some ( ( inf, AttributeKind :: Attribute ) ) ) ;
14381432 }
14391433 }
@@ -1754,10 +1748,6 @@ impl<'db: 'slf, 'slf> Inferred {
17541748 . into_maybe_inferred ( )
17551749 {
17561750 let class_as_inferred = class. as_inferred ( i_s) ;
1757- let add_issue = |issue| {
1758- add_issue ( issue) ;
1759- true
1760- } ;
17611751 return Some ( Some ( inf. execute (
17621752 i_s,
17631753 & CombinedArgs :: new (
You can’t perform that action at this time.
0 commit comments