File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -336,7 +336,7 @@ impl<'py> Python<'py> {
336336        // access thread-local storage from the current thread. 
337337
338338        // 1. Construct a task 
339-         struct  Task ( * mut  dyn  FnMut ( ) ) ; 
339+         struct  Task ( * mut  ( dyn  FnMut ( )  +  ' static ) ) ; 
340340        unsafe  impl  Send  for  Task  { } 
341341
342342        let  ( result_sender,  result_receiver)  = sync_channel :: < Result < T > > ( 0 ) ; 
@@ -356,7 +356,7 @@ impl<'py> Python<'py> {
356356        } ; 
357357
358358        // SAFETY: the current thread will block until the closure has returned 
359-         let  mut  task = Task ( unsafe  {  transmute ( & mut  task as  & mut  dyn  FnMut ( ) )  } ) ; 
359+         let  mut  task = Task ( unsafe  {  transmute ( & mut  task as  & mut  ( dyn  FnMut ( )  +  ' _ ) )  } ) ; 
360360
361361        // 2. Dispatch task to waiting thread, spawn new thread if necessary 
362362        let  trap = PanicTrap :: new ( 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments