File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -1024,14 +1024,15 @@ impl<A: Allocator> Dlmalloc<A> {
10241024
10251025    unsafe  fn  insert_small_chunk ( & mut  self ,  chunk :  * mut  Chunk ,  size :  usize )  { 
10261026        let  idx = self . small_index ( size) ; 
1027-         let  head = self . smallbin_at ( idx) ; 
1028-         let  mut  f = head; 
10291027        debug_assert ! ( size >= self . min_chunk_size( ) ) ; 
1030-         if  !self . smallmap_is_marked ( idx)  { 
1028+         let   ( f ,  head )  =  if  !self . smallmap_is_marked ( idx)  { 
10311029            self . mark_smallmap ( idx) ; 
1030+             let  head = self . smallbin_at ( idx) ; 
1031+             ( head,  head) 
10321032        }  else  { 
1033-             f = ( * head) . prev ; 
1034-         } 
1033+             let  head = self . smallbin_at ( idx) ; 
1034+             ( ( * head) . prev ,  head) 
1035+         } ; 
10351036
10361037        ( * head) . prev  = chunk; 
10371038        ( * f) . next  = chunk; 
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ fn map() {
2222
2323#[ test]  
2424fn  strings ( )  { 
25-     format ! ( "foo, bar, {}" ,  "baz" ) ; 
25+     let  _ =  format ! ( "foo, bar, {}" ,  "baz" ) ; 
2626} 
2727
2828#[ test]  
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments