Skip to content

Commit

Permalink
revert: unwanted translations in src/ctrlc/windows.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveLauC committed Sep 22, 2024
1 parent 23b2870 commit da6f9cb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ctrlc/windows.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//! A stub for Ctrl + C handling.
use crate::ctrlc::interrupted::set_interrupted;
use rust_i18n::t;
use tracing::error;
use winapi::shared::minwindef::{BOOL, DWORD, FALSE, TRUE};
use winapi::um::consoleapi::SetConsoleCtrlHandler;
Expand All @@ -18,6 +17,6 @@ extern "system" fn handler(ctrl_type: DWORD) -> BOOL {

pub fn set_handler() {
if 0 == unsafe { SetConsoleCtrlHandler(Some(handler), TRUE) } {
error!("{}", t!("Cannot set a control C handler"))
error!("Cannot set a control C handler")
}
}

0 comments on commit da6f9cb

Please sign in to comment.