fixed control_c flag call

This commit is contained in:
Nickiel12 2022-01-02 19:45:29 -08:00
parent 55921ca08f
commit 18633890f2

View file

@ -11,9 +11,8 @@ fn it_works() {
#[test] #[test]
fn can_make_ctrl_c_handler() { fn can_make_ctrl_c_handler() {
let (control_c_flag_tx_1, _control_c_called_flag_rx_1) = sync_flag::new_syncflag(false);
let (control_c_flag_tx, _control_c_called_flag_rx) = sync_flag::new_syncflag(false); let (control_c_flag_tx, _control_c_called_flag_rx) = sync_flag::new_syncflag(false);
crate::setup_control_c(control_c_flag_tx, control_c_flag_tx_1); crate::setup_control_c(control_c_flag_tx);
drop(_control_c_called_flag_rx); drop(_control_c_called_flag_rx);
} }