Clean up unnecessary use of RefCell

This commit is contained in:
Your Name
2023-02-19 22:32:27 -05:00
parent a5d0729bba
commit f2ac3d5fa6
2 changed files with 2 additions and 4 deletions

View File

@@ -134,7 +134,7 @@ fn main() {
.expect("failed to get initial audio devices and sessions");
let (tx, rx): (Sender<String>, Receiver<String>) = mpsc::channel();
*WIN_CHANGE_CHANNEL_TX.lock().unwrap().borrow_mut() = Some(tx);
*WIN_CHANGE_CHANNEL_TX.lock().unwrap() = Some(tx);
thread::spawn(move || {
win_event_hook_loop();