tustvold commented on issue #5344:
URL: https://github.com/apache/arrow-rs/issues/5344#issuecomment-1916565091

   The following compiles for me
   
   ```
   async fn spawn_builders(schema: &SchemaRef) {
       let builders: Vec<_> = schema.fields.iter().map(|f| 
make_builder(f.data_type(), 1024)).collect();
       tokio::spawn(async move {
           drop(builders)
       });
   }
   ```
   
   Is it possible that `f` is borrowing the builders `Vec` instead of moving it?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to