File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
Expand file tree Collapse file tree 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 2424//!
2525//! }
2626//! })
27- #![ feature( async_closure) ]
27+ // #![feature(async_closure)]
2828#![ allow( unused_imports) ]
2929#![ allow( dead_code) ]
30- #![ feature( mutex_unlock) ]
30+ // #![feature(mutex_unlock)]
3131mod tinydancer;
3232use crossterm:: style:: Stylize ;
3333use reqwest:: header:: { ACCEPT , CONTENT_TYPE } ;
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ use std::sync::{Arc, Mutex};
1212use std:: thread:: sleep;
1313use std:: time:: Duration ;
1414use std:: { any:: Any , thread:: Thread } ;
15- use std:: { fmt, thread:: JoinHandle } ;
15+ use std:: { fmt, mem :: drop , thread:: JoinHandle } ;
1616use thiserror:: Error ;
1717use tiny_logger:: logs:: info;
1818use tui:: layout:: Rect ;
@@ -245,7 +245,7 @@ impl ClientService<UiConfig> for UiService {
245245 }
246246 _ => { }
247247 }
248- Mutex :: unlock ( status) ;
248+ drop ( status) ;
249249 enable_raw_mode ( ) ;
250250 if crossterm:: event:: poll ( Duration :: from_millis ( 100 ) ) . unwrap ( ) {
251251 let ev = crossterm:: event:: read ( ) . unwrap ( ) ;
@@ -262,7 +262,7 @@ impl ClientService<UiConfig> for UiService {
262262 * status = ClientStatus :: ShuttingDown ( String :: from (
263263 "Shutting Down Gracefully..." ,
264264 ) ) ;
265- Mutex :: unlock ( status) ;
265+ drop ( status) ;
266266 disable_raw_mode ( ) ;
267267 }
268268 }
You can’t perform that action at this time.
0 commit comments