File tree Expand file tree Collapse file tree 2 files changed +9
-31
lines changed Expand file tree Collapse file tree 2 files changed +9
-31
lines changed Original file line number Diff line number Diff line change @@ -243,33 +243,11 @@ impl Renderer {
243243                    . elements 
244244                    . iter ( ) 
245245                    . find_map ( |s| match  & s { 
246-                         Element :: Cause ( cause)  => { 
247-                             if  cause. markers . iter ( ) . any ( |m| m. kind . is_primary ( ) )  { 
248-                                 Some ( cause. path . as_ref ( ) ) 
249-                             }  else  { 
250-                                 None 
251-                             } 
252-                         } 
253-                         Element :: Origin ( origin)  => { 
254-                             if  origin. primary  { 
255-                                 Some ( Some ( & origin. path ) ) 
256-                             }  else  { 
257-                                 None 
258-                             } 
259-                         } 
246+                         Element :: Cause ( cause)  => Some ( cause. path . as_ref ( ) ) , 
247+                         Element :: Origin ( origin)  => Some ( Some ( & origin. path ) ) , 
260248                        _ => None , 
261249                    } ) 
262-                     . unwrap_or ( 
263-                         group
264-                             . elements 
265-                             . iter ( ) 
266-                             . find_map ( |s| match  & s { 
267-                                 Element :: Cause ( cause)  => Some ( cause. path . as_ref ( ) ) , 
268-                                 Element :: Origin ( origin)  => Some ( Some ( & origin. path ) ) , 
269-                                 _ => None , 
270-                             } ) 
271-                             . unwrap_or_default ( ) , 
272-                     ) ; 
250+                     . unwrap_or_default ( ) ; 
273251                if  og_primary_path. is_none ( )  && primary_path. is_some ( )  { 
274252                    og_primary_path = primary_path; 
275253                } 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments