File tree Expand file tree Collapse file tree 4 files changed +2
-4
lines changed Expand file tree Collapse file tree 4 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 11// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0. 
22#[ cfg( feature = "protobuf-codec" ) ]  
3- #[ allow( clippy:: needless_borrows_for_generic_args) ]  
43// Allow deprecated as TiKV pin versions to a outdated one. 
54fn  generate_protobuf ( )  { 
65    use  std:: io:: Write ; 
Original file line number Diff line number Diff line change 11// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0. 
2+ 
23use  pprof:: protos:: Message ; 
34use  std:: fs:: File ; 
45use  std:: io:: Write ; 
@@ -103,7 +104,7 @@ fn main() {
103104        let  profile = report. pprof ( ) . unwrap ( ) ; 
104105
105106        let  mut  content = Vec :: new ( ) ; 
106-         // profile.encode(&mut content).unwrap(); # cargo tests fail with this enabled. encode doesn't seem to be recongized as a valid call. 
107+         profile. encode ( & mut  content) . unwrap ( ) ; 
107108        file. write_all ( & content) . unwrap ( ) ; 
108109
109110        println ! ( "report: {:?}" ,  report) ; 
Original file line number Diff line number Diff line change @@ -62,7 +62,6 @@ impl UnresolvedFrames {
6262    } 
6363} 
6464
65- #[ allow( clippy:: map_all_any_identity) ]  
6665impl  PartialEq  for  UnresolvedFrames  { 
6766    fn  eq ( & self ,  other :  & Self )  -> bool  { 
6867        let  ( frames1,  frames2)  = ( & self . frames ,  & other. frames ) ; 
Original file line number Diff line number Diff line change @@ -174,7 +174,6 @@ impl ProfilerGuard<'_> {
174174    } 
175175} 
176176
177- #[ allow( clippy:: needless_lifetimes) ]  
178177impl < ' a >  Drop  for  ProfilerGuard < ' a >  { 
179178    fn  drop ( & mut  self )  { 
180179        drop ( self . timer . take ( ) ) ; 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments