File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -181,6 +181,7 @@ impl SourceMapBuilder {
181181    } 
182182
183183    /// Adds a new mapping to the builder. 
184+      #[ allow( clippy:: too_many_arguments) ]  
184185    pub  fn  add ( 
185186        & mut  self , 
186187        dst_line :  u32 , 
@@ -230,6 +231,7 @@ impl SourceMapBuilder {
230231    } 
231232
232233    /// Adds a new mapping to the builder. 
234+      #[ allow( clippy:: too_many_arguments) ]  
233235    pub  fn  add_raw ( 
234236        & mut  self , 
235237        dst_line :  u32 , 
Original file line number Diff line number Diff line change @@ -222,9 +222,8 @@ fn test_encode_rmi() {
222222    fn  encode ( indices :  & [ usize ] )  -> String  { 
223223        let  mut  out = vec ! [ ] ; 
224224
225-         let  mut  data = Vec :: with_capacity ( 256 ) ; 
226225        // Fill with zeros while testing 
227-         data. resize ( 256 ,   0 ) ; 
226+         let   mut   data =  vec ! [ 0 ;   256 ] ; 
228227
229228        let  bits = data. view_bits_mut :: < Lsb0 > ( ) ; 
230229        for  & i in  indices { 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments