File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -32,29 +32,6 @@ pub struct ResponseMessage<T> {
3232    pub  impression_data :  bool , 
3333} 
3434
35- impl < TInput >  FlatMessage < TInput >  for  SomeType 
36- where 
37-     Self :  Follow < ' static >  + Sized , 
38- { 
39-     fn  build_response ( input :  TInput )  -> Buf  { 
40-         let  bytes:  Vec < u8 >  = BUILDER . with ( |cell| { 
41-             let  mut  builder = cell. borrow_mut ( ) ; 
42-             builder. reset ( ) ; 
43-             let  off = Self :: as_flat_buffer ( & mut  builder,  input) ; 
44-             builder. finish ( off,  None ) ; 
45-             builder. finished_data ( ) . to_vec ( ) 
46-         } ) ; 
47-         let  mut  v = bytes; 
48-         let  buf = Buf  { 
49-             ptr :  v. as_mut_ptr ( ) , 
50-             len :  v. len ( ) , 
51-             cap :  v. capacity ( ) , 
52-         } ; 
53-         std:: mem:: forget ( v) ; 
54-         buf
55-     } 
56- } 
57- 
5835#[ repr( C ) ]  
5936pub  struct  Buf  { 
6037    pub  ptr :  * mut  u8 ,  // points to heap memory owned by Rust 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments