File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ impl ListStore {
100100                "Incorrect `new_order` slice length. Expected `{count}`, found `{}`." , 
101101                new_order. len( ) 
102102            ) ; 
103-             let  safe_values = new_order. iter ( ) . max ( ) . map_or ( true ,   |& max| { 
103+             let  safe_values = new_order. iter ( ) . max ( ) . is_none_or ( |& max| { 
104104                let  max = max as  i32 ; 
105105                max >= 0  && max < count
106106            } ) ; 
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ impl TreeStore {
102102                "Incorrect `new_order` slice length. Expected `{count}`, found `{}`." , 
103103                new_order. len( ) 
104104            ) ; 
105-             let  safe_values = new_order. iter ( ) . max ( ) . map_or ( true ,   |& max| { 
105+             let  safe_values = new_order. iter ( ) . max ( ) . is_none_or ( |& max| { 
106106                let  max = max as  i32 ; 
107107                max >= 0  && max < count
108108            } ) ; 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments