File tree 3 files changed +7
-5
lines changed
3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change
1
+ [toolchain ]
2
+ channel = " 1.65.0"
Original file line number Diff line number Diff line change 24
24
//!
25
25
//! }
26
26
//! })
27
- #![ feature( async_closure) ]
27
+ // #![feature(async_closure)]
28
28
#![ allow( unused_imports) ]
29
29
#![ allow( dead_code) ]
30
- #![ feature( mutex_unlock) ]
30
+ // #![feature(mutex_unlock)]
31
31
mod tinydancer;
32
32
use crossterm:: style:: Stylize ;
33
33
use reqwest:: header:: { ACCEPT , CONTENT_TYPE } ;
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ use std::sync::{Arc, Mutex};
12
12
use std:: thread:: sleep;
13
13
use std:: time:: Duration ;
14
14
use std:: { any:: Any , thread:: Thread } ;
15
- use std:: { fmt, thread:: JoinHandle } ;
15
+ use std:: { fmt, mem :: drop , thread:: JoinHandle } ;
16
16
use thiserror:: Error ;
17
17
use tiny_logger:: logs:: info;
18
18
use tui:: layout:: Rect ;
@@ -245,7 +245,7 @@ impl ClientService<UiConfig> for UiService {
245
245
}
246
246
_ => { }
247
247
}
248
- Mutex :: unlock ( status) ;
248
+ drop ( status) ;
249
249
enable_raw_mode ( ) ;
250
250
if crossterm:: event:: poll ( Duration :: from_millis ( 100 ) ) . unwrap ( ) {
251
251
let ev = crossterm:: event:: read ( ) . unwrap ( ) ;
@@ -262,7 +262,7 @@ impl ClientService<UiConfig> for UiService {
262
262
* status = ClientStatus :: ShuttingDown ( String :: from (
263
263
"Shutting Down Gracefully..." ,
264
264
) ) ;
265
- Mutex :: unlock ( status) ;
265
+ drop ( status) ;
266
266
disable_raw_mode ( ) ;
267
267
}
268
268
}
You can’t perform that action at this time.
0 commit comments