This repository was archived by the owner on Dec 29, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -232,10 +232,10 @@ pub struct AnalysisQueue {
232
232
impl AnalysisQueue {
233
233
// Create a new queue and start the worker thread.
234
234
pub fn init ( ) -> AnalysisQueue {
235
- let queue = Arc :: new ( Mutex :: new ( Vec :: new ( ) ) ) ;
235
+ let queue = Arc :: default ( ) ;
236
236
let worker_thread = thread:: spawn ( {
237
237
let queue = Arc :: clone ( & queue) ;
238
- move || AnalysisQueue :: run_worker_thread ( queue)
238
+ || AnalysisQueue :: run_worker_thread ( queue)
239
239
} )
240
240
. thread ( )
241
241
. clone ( ) ;
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ pub(super) fn cargo(
59
59
let analysis = Arc :: clone ( & analysis) ;
60
60
let input_files = Arc :: clone ( & input_files) ;
61
61
let out = Arc :: clone ( & out) ;
62
- move || {
62
+ || {
63
63
run_cargo (
64
64
compilation_cx,
65
65
package_arg,
Original file line number Diff line number Diff line change @@ -369,7 +369,7 @@ fn init() -> Sender<String> {
369
369
Box :: new ( ChannelMsgReader :: new ( receiver) ) ,
370
370
PrintlnOutput ,
371
371
) ;
372
- thread:: spawn ( move || LsService :: run ( service) ) ;
372
+ thread:: spawn ( || LsService :: run ( service) ) ;
373
373
374
374
sender
375
375
. send (
You can’t perform that action at this time.
0 commit comments